summaryrefslogtreecommitdiff
path: root/shell/key-bindings.zsh
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-05-26 00:52:06 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-05-26 00:52:06 +0900
commitbdb94fba7db3d0b59954b474439c28fb1f3fa8d8 (patch)
tree143ebf0b6f44db40d4e294dc083a34b60fc0cb54 /shell/key-bindings.zsh
parent2f364c62f442af24ed332dc6fe018e676b8dd28c (diff)
downloadfzf-bdb94fba7db3d0b59954b474439c28fb1f3fa8d8.tar.gz
[zsh] Fix #579 - Locally unset globsubst
Diffstat (limited to 'shell/key-bindings.zsh')
-rw-r--r--shell/key-bindings.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index f60bbaea..a173b12f 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -38,6 +38,7 @@ bindkey '\ec' fzf-cd-widget
# CTRL-R - Paste the selected command from history into the command line
fzf-history-widget() {
local selected num
+ setopt localoptions noglobsubst
selected=( $(fc -l 1 | $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r ${=FZF_CTRL_R_OPTS} -q "${LBUFFER//$/\\$}") )
if [ -n "$selected" ]; then
num=$selected[1]