This commit is contained in:
shadarim 2024-11-16 00:59:33 +02:00 committed by GitHub
commit 3c4564d0cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,10 +197,15 @@ _zsh_autosuggest_bind_widgets() {
local widget
local ignore_widgets
local bcompwidgets
# don't want to ignore bound completion widgets
# user can manually override this using ZSH_AUTOSUGGEST_IGNORE_WIDGETS
bcompwidgets=${(j:|:)${(M)${${(f)"$(builtin bindkey)"}##*[[:space:]]##}:#_*}}
ignore_widgets=(
.\*
_\*
_^\(${bcompwidgets}\)
${_ZSH_AUTOSUGGEST_BUILTIN_ACTIONS/#/autosuggest-}
$ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX\*
$ZSH_AUTOSUGGEST_IGNORE_WIDGETS