[zsh] Remove unnecessary evals

This commit is contained in:
Junegunn Choi 2016-04-12 21:20:03 +09:00
parent e5ac2ebd7c
commit 935e986be5

View File

@ -145,7 +145,7 @@ fzf-completion() {
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion-Flags
tokens=(${(z)LBUFFER})
if [ ${#tokens} -lt 1 ]; then
eval "zle ${fzf_default_completion:-expand-or-complete}"
zle ${fzf_default_completion:-expand-or-complete}
return
fi
@ -180,7 +180,7 @@ fzf-completion() {
fi
# Fall back to default completion
else
eval "zle ${fzf_default_completion:-expand-or-complete}"
zle ${fzf_default_completion:-expand-or-complete}
fi
}