Commit 834c258
authored
adjust to ambiguous os.tmpname() behaviour on Windows and fix integration with fzf
os.tmpname() results on Windows can be different depending on compiler used to compile Lua library
i.e one of the following:
1) \sXXX. or \sXX. where X is random alphanumeric character. Old code is assuming this result.
2) <full\path\to\user\tempfolder>\sXXX.0 where X is as above. In this case old code produces incompatible with system path to temporary file (with colon in it's name) so file is created with different truncated filename and nothing is ever written to it. That way nothing is ever passed to fzf.
Code changed to be compatible with both cases.1 parent 4bbd0f1 commit 834c258
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
| 1671 | + | |
1671 | 1672 | | |
1672 | | - | |
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | | - | |
1680 | | - | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1681 | 1683 | | |
1682 | 1684 | | |
1683 | 1685 | | |
| |||
1870 | 1872 | | |
1871 | 1873 | | |
1872 | 1874 | | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
1877 | 1878 | | |
1878 | 1879 | | |
1879 | 1880 | | |
| |||
0 commit comments