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

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