Skip to content

Commit

Permalink
[fish] Support multiline commands (#954)
Browse files Browse the repository at this point in the history
Fix found by @amosbird at #953 (comment)

closes #440
  • Loading branch information
Tom Fitzhenry authored and junegunn committed Jun 25, 2017
1 parent faedae7 commit dbcaec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/key-bindings.fish
Expand Up @@ -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
Expand Down

0 comments on commit dbcaec5

Please sign in to comment.