summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorTom Fitzhenry <tom@tom.tf>2017-06-25 22:09:51 +1000
committerJunegunn Choi <junegunn.c@gmail.com>2017-06-25 21:09:51 +0900
commitdbcaec59ae0ebf1489860968d8fb186972f00ffb (patch)
treea715dfe620067b3f85ee7fd80d8ee40e90066294 /shell
parentfaedae708e4c288ffd40e7fad3d6a796b48e804a (diff)
downloadfzf-dbcaec59ae0ebf1489860968d8fb186972f00ffb.tar.gz
[fish] Support multiline commands (#954)
Fix found by @amosbird at https://github.com/junegunn/fzf/issues/953#issuecomment-310309055 closes #440
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish
index 238975fc..03b543ea 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