Commit 771c72d
committed
Fix invalid pathname in
The fzf interactive mode (`-I`) constructs a `tmpname` pathname and
tries to sanitize it by stripping all `\` characters. But it missed
stripping all `:` characters, and the command printed this error output:
The filename, directory name, or volume label syntax is incorrect.
The `tmpname` looked like "c:\tmp\Temp\zlua_c:tmpTempsh2k0.txt", and
the embedded `:` caused the error output.
This commit adds `:` to the list of characters to be stripped (only on
Windows).z -I xyz on Windows.1 parent 4bbd0f1 commit 771c72d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | | - | |
| 1679 | + | |
1680 | 1680 | | |
1681 | 1681 | | |
1682 | 1682 | | |
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
1876 | | - | |
| 1876 | + | |
1877 | 1877 | | |
1878 | 1878 | | |
1879 | 1879 | | |
| |||
0 commit comments