fix arithmetic operation again

This commit is contained in:
haxibami 2024-05-29 12:23:59 +09:00
parent d5a9730b5b
commit 03a0904cd4
No known key found for this signature in database
GPG key ID: C1F14358B4A735B6

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