[zsh-completion] Allow specifying empty completion trigger. (#230)

This commit is contained in:
Tiziano Santoro 2015-05-11 00:29:44 +01:00 committed by Junegunn Choi
parent 64949bf467
commit 14fbe06d9e

View File

@ -109,7 +109,7 @@ fzf-zsh-completion() {
fi fi
cmd=${tokens[1]} cmd=${tokens[1]}
trigger=${FZF_COMPLETION_TRIGGER:-**} trigger=${FZF_COMPLETION_TRIGGER-'**'}
# Trigger sequence given # Trigger sequence given
tail=${LBUFFER:$(( ${#LBUFFER} - ${#trigger} ))} tail=${LBUFFER:$(( ${#LBUFFER} - ${#trigger} ))}