From 26b9f5831a352f501e426d9e5c0c588a3656b0be Mon Sep 17 00:00:00 2001 From: bitraid Date: Fri, 24 Jan 2025 10:15:43 +0200 Subject: [PATCH] [fish] Fix compatibility with v3.1.2 - v3.3.1 (#4200) Don't use the command substitution syntax: $(cmd) Fix #4196 --- shell/key-bindings.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index f343bd15..15c53ef2 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -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