diff --git a/z.lua b/z.lua index 108cada..083e512 100755 --- a/z.lua +++ b/z.lua @@ -1393,7 +1393,10 @@ function z_cd(patterns) local cmd = ((not fzf) and 'fzf' or fzf) .. ' ' .. cmd if not windows then tmpname = os.tmpname() - cmd = 'cat "' .. tmpname .. '" | ' .. cmd .. ' --height 35%' + cmd = 'cat "' .. tmpname .. '" | ' .. cmd + if not os.getenv('_ZL_FZF_FULLSCR') then + cmd = cmd .. ' --height 35%' + end else tmpname = os.tmpname():gsub('\\', ''):gsub('%.', '') tmpname = os.getenv('TMP') .. '\\zlua_' .. tmpname .. '.txt'