Skip to content

Commit 5bc478d

Browse files
Stephenmarlonrichert
Stephen
authored andcommitted
Fix autosuggest regression introduced by bbbefed
1 parent 6045aef commit 5bc478d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Functions/Init/.autocomplete__async

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ ${0}:precmd() {
101101
(( KEYS_QUEUED_COUNT || PENDING )) &&
102102
return
103103

104+
[[ -v ZSH_AUTOSUGGEST_IGNORE_WIDGETS ]] && (( ZSH_AUTOSUGGEST_IGNORE_WIDGETS[(I)$LASTWIDGET] )) &&
105+
unset POSTDISPLAY
106+
104107
# Don't get activated by asynchronous widgets.
105108
[[ $LASTWIDGET == (autosuggest-suggest|.autocomplete:async:*:fd-widget) ]] &&
106109
return 0

0 commit comments

Comments
 (0)