mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-28 17:48:25 +00:00
[fish] Fix history formatting when perl is missing (#4166)
Don't add tab after escaped newline.
This commit is contained in:
parent
93c0299606
commit
cc1d9f124e
@ -76,8 +76,8 @@ function fzf_key_bindings
|
||||
set -l line 0
|
||||
for i in (builtin history -z --reverse | string split0)
|
||||
set line (math $line + 1)
|
||||
string escape -n -- $line\t$i
|
||||
end | string join0 | string replace -a '\n' '\n\t' | string unescape -n | eval (__fzfcmd) --tac --read0 --print0 -q '(commandline)' | string replace -r '^\d*\t' '' | read -lz result
|
||||
string escape -n -- $line\t(string replace -a -- \n \n\t $i | string collect)
|
||||
end | string join0 | string unescape -n | eval (__fzfcmd) --tac --read0 --print0 -q '(commandline)' | string replace -r '^\d*\t' '' | read -lz result
|
||||
and commandline -- $result
|
||||
end
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user