Skip to content

Commit 9b9c0b8

Browse files
authored
Merge pull request #163 from jpcirrus/patch-1
Update fzf --inline-info option to --info=inline
2 parents 1ead694 + 08510fe commit 9b9c0b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

z.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ function z_cd(patterns)
16341634
elseif Z_INTERACTIVE == 2 then
16351635
local fzf = os.environ('_ZL_FZF', 'fzf')
16361636
local tmpname = '/tmp/zlua.txt'
1637-
local cmd = '--nth 2.. --reverse --inline-info --tac '
1637+
local cmd = '--nth 2.. --reverse --info=inline --tac '
16381638
local flag = os.environ('_ZL_FZF_FLAG', '')
16391639
flag = (flag == '' or flag == nil) and '+s -e' or flag
16401640
cmd = ((fzf == '') and 'fzf' or fzf) .. ' ' .. cmd .. ' ' .. flag
@@ -1855,7 +1855,7 @@ function cd_breadcrumbs(pwd, interactive)
18551855
retval = io.read('*l')
18561856
elseif interactive == 2 then
18571857
local fzf = os.environ('_ZL_FZF', 'fzf')
1858-
local cmd = '--reverse --inline-info --tac '
1858+
local cmd = '--reverse --info=inline --tac '
18591859
local flag = os.environ('_ZL_FZF_FLAG', '')
18601860
flag = (flag == '' or flag == nil) and '+s -e' or flag
18611861
cmd = ((fzf == '') and 'fzf' or fzf) .. ' ' .. cmd .. ' ' .. flag
@@ -2287,7 +2287,7 @@ function z_shell_init(opts)
22872287
end
22882288
print(script_complete_bash)
22892289
if opts.fzf ~= nil then
2290-
fzf_cmd = "fzf --nth 2.. --reverse --inline-info --tac "
2290+
fzf_cmd = "fzf --nth 2.. --reverse --info=inline --tac "
22912291
local height = os.environ('_ZL_FZF_HEIGHT', '35%')
22922292
if height ~= nil and height ~= '' and height ~= '0' then
22932293
fzf_cmd = fzf_cmd .. ' --height ' .. height .. ' '

0 commit comments

Comments
 (0)