From 03a0904cd458f916a18adf4508f6d1989fb65717 Mon Sep 17 00:00:00 2001 From: haxibami Date: Wed, 29 May 2024 12:23:59 +0900 Subject: [PATCH] fix arithmetic operation again --- zsh-fzf-history-search.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' )}"