[fish] Fix compatibility with v3.1.2 - v3.3.1 (#4200)

Don't use the command substitution syntax: $(cmd)

Fix #4196
This commit is contained in:
bitraid
2025-01-24 10:15:43 +02:00
committed by GitHub
parent 243a76002c
commit 26b9f5831a

View File

@@ -75,7 +75,7 @@ function fzf_key_bindings
'string join0 -- $i\t(string replace -a -- \n \n\t $h[$i] | string collect);' \
'end'
end
set -l result (eval "$FZF_DEFAULT_COMMAND | $(__fzfcmd) --read0 --print0 -q (commandline) --bind='enter:become:string replace -a -- \n\t \n {2..} | string collect'")
set -l result (eval $FZF_DEFAULT_COMMAND \| (__fzfcmd) --read0 --print0 -q (commandline | string escape) "--bind=enter:become:'string replace -a -- \n\t \n {2..} | string collect'")
and commandline -- $result
end
commandline -f repaint