Merge pull request #39 from haxibami/fix-not-equal-again

fix arithmetic operation again
This commit is contained in:
Josh Skidmore 2025-09-17 13:51:57 -04:00 committed by GitHub
commit b5a9da8b8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'
)}"