mirror of
https://github.com/skywind3000/z.lua
synced 2026-10-26 10:34:27 +00:00
Quote tmpname to handle space
This commit is contained in:
1 parent
e06daee0a7
commit
b87fb5684b
1 file changed
+1
-1
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user