From c3d8865ff787df373f4d92e77a34a195716d662d Mon Sep 17 00:00:00 2001 From: Aloxaf Date: Tue, 11 Jun 2024 15:37:21 +0800 Subject: [PATCH] fix: prefix completion in quote string close #447 --- fzf-tab.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fzf-tab.zsh b/fzf-tab.zsh index ee77101..9ca1e04 100644 --- a/fzf-tab.zsh +++ b/fzf-tab.zsh @@ -123,11 +123,10 @@ builtin unalias -m '[^+]*' fi ;; *) - if (( ! _ftb_continue_last )) \ && [[ $compstate[insert] == *"unambiguous" ]] \ && [[ -n $compstate[unambiguous] ]] \ - && [[ "$compstate[unambiguous]" != "$IPREFIX$PREFIX" ]]; then + && [[ "$compstate[unambiguous]" != "$compstate[quote]$IPREFIX$PREFIX$compstate[quote]" ]]; then compstate[list]= compstate[insert]=unambiguous _ftb_finish=1