From 98141a6643caf28eecc6dff0bc801b275548a70c Mon Sep 17 00:00:00 2001 From: loichyan Date: Fri, 21 Apr 2023 11:55:52 +0800 Subject: [PATCH] Fix empty strings are not checked whether match ignored-input --- scripts/.autocomplete.async | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/.autocomplete.async b/scripts/.autocomplete.async index 9d48680..ffaa735 100644 --- a/scripts/.autocomplete.async +++ b/scripts/.autocomplete.async @@ -400,7 +400,7 @@ log_functions+=( .autocomplete.async.complete.fd-widget.inner ) builtin zstyle -s ":autocomplete:${curcontext}:" ignored-input ignored if (( ${#words[@]} == 1 && ${#words[CURRENT]} < min_input )) || - [[ -n $words[CURRENT] && $words[CURRENT] == $~ignored ]]; then + [[ -n $ignored && $words[CURRENT] == $~ignored ]]; then compstate[list]= false else