Spaces and backslashes are over-escaped in tab completion when there is a wildcard present.
This is probably two related bugs.
The first is that expansion::words::unescape
doesn't support spaces in filenames, and the second is that wildcards get escaped when they're not the only character in the expanding word.
To reproduce both issues at once:
mkdir example
touch example/file\ A
touch example/file\ B
file example/f*<Tab><Tab><Tab>
Observe that one backslash is added each time you press Tab. If you move the cursor to earlier in the line before pressing Tab it gets even worse...
file example/file\ *<TAB>
Observe that the space gets double escaped.
Expected behavior:
Accidentally pressing Tab after the * shouldn't double escape anything, and it shouldn't escape the *.