1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-06-30 09:58:50 +00:00

Quote tmpname to handle space

This commit is contained in:
BarbUk
2019-02-05 19:15:20 +04:00
parent e06daee0a7
commit b87fb5684b
+1 -1
View File
@@ -1407,7 +1407,7 @@ function z_cd(patterns)
if not os.getenv('_ZL_FZF_FULLSCR') then
cmd = cmd .. ' --height 35%'
end
cmd = cmd .. ' < ' .. tmpname
cmd = cmd .. ' < "' .. tmpname .. '"'
else
tmpname = os.tmpname():gsub('\\', ''):gsub('%.', '')
tmpname = os.getenv('TMP') .. '\\zlua_' .. tmpname .. '.txt'