From dbcaec59ae0ebf1489860968d8fb186972f00ffb Mon Sep 17 00:00:00 2001 From: Tom Fitzhenry Date: Sun, 25 Jun 2017 22:09:51 +1000 Subject: [PATCH] [fish] Support multiline commands (#954) Fix found by @amosbird at https://github.com/junegunn/fzf/issues/953#issuecomment-310309055 closes #440 --- 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 238975fc616..03b543ea33c 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -44,7 +44,7 @@ function fzf_key_bindings set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40% begin set -lx FZF_DEFAULT_OPTS "--height $FZF_TMUX_HEIGHT $FZF_DEFAULT_OPTS --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" - history | eval (__fzfcmd) -q '(commandline)' | read -l result + history -z | eval (__fzfcmd) --read0 -q '(commandline)' | perl -pe 'chomp if eof' | read -lz result and commandline -- $result end commandline -f repaint