diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-11-04 21:55:35 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-11-04 21:57:18 +0900 |
commit | 2c4f71d85b2ac8dab1e270f0648387b9e099c2ec (patch) | |
tree | 01dea72c4c9d8effb1cfb1d1939fe032b2cc3941 | |
parent | c6328affaede9ff2ba903bc85d69ea6290df2a77 (diff) |
[zsh] fzf-history-widget - update local declaration
-rw-r--r-- | shell/key-bindings.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 27810d32..c429d918 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 |