diff --git a/zsh-fzf-history-search.zsh b/zsh-fzf-history-search.zsh index f813e0c..6e40fa7 100644 --- a/zsh-fzf-history-search.zsh +++ b/zsh-fzf-history-search.zsh @@ -68,7 +68,7 @@ fzf_history_search() { local ret=$? if [ -n "$candidates" ]; then - if (( ! $CANDIDATE_LEADING_FIELDS == 1 )); then + if (( $CANDIDATE_LEADING_FIELDS != 1 )); then BUFFER="${candidates[@]/(#m)[0-9 \-\:]##/$( printf '%s' "${${(As: :)MATCH}[${CANDIDATE_LEADING_FIELDS},-1]}" | sed 's/%/%%/g' )}"