1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-24 00:29:48 +00:00

fixed: fzf height issue

This commit is contained in:
skywind3000
2019-02-02 15:29:58 +08:00
parent ab848bd9ca
commit 38f0d99668

2
z.lua
View File

@@ -1147,7 +1147,7 @@ function z_cd(patterns)
local cmd = ((not fzf) and 'fzf' or fzf) .. ' ' .. cmd
if not windows then
tmpname = os.tmpname()
cmd = 'cat "' .. tmpname .. '" | --height 35% ' .. cmd
cmd = 'cat "' .. tmpname .. '" | ' .. cmd .. ' --height 35%'
else
tmpname = os.tmpname():gsub('\\', ''):gsub('%.', '')
tmpname = os.getenv('TMP') .. '\\zlua_' .. tmpname .. '.txt'