[zsh] Fix #579 - Locally unset globsubst

This commit is contained in:
Junegunn Choi committed 2016-05-26 00:52:06 +09:00
1 parent 2f364c62f4
commit bdb94fba7d
2 files changed
+3 -6

No files matched your search

+1
View File
@@ -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]