From e06daee0a7a4c7334bf2974b86f13674eb2a7f84 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Tue, 5 Feb 2019 18:19:20 +0400 Subject: [PATCH] Useless use of cat for fzf completion --- z.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z.lua b/z.lua index 3965ec5..cbf7843 100755 --- a/z.lua +++ b/z.lua @@ -1404,10 +1404,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 if not os.getenv('_ZL_FZF_FULLSCR') then cmd = cmd .. ' --height 35%' end + cmd = cmd .. ' < ' .. tmpname else tmpname = os.tmpname():gsub('\\', ''):gsub('%.', '') tmpname = os.getenv('TMP') .. '\\zlua_' .. tmpname .. '.txt'