From 2c4f71d85b2ac8dab1e270f0648387b9e099c2ec Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 4 Nov 2015 21:55:35 +0900 Subject: [PATCH] [zsh] fzf-history-widget - update local declaration --- shell/key-bindings.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 27810d3..c429d91 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -36,7 +36,7 @@ bindkey '\ec' fzf-cd-widget # CTRL-R - Paste the selected command from history into the command line fzf-history-widget() { - local selected restore_no_bang_hist + local selected num if selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r -q "$LBUFFER") ); then num=$selected[1] if [ -n "$num" ]; then