This commit is contained in:
aninder 2025-07-06 04:01:46 +00:00 committed by GitHub
commit 1c249a5a3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,7 +173,8 @@ _zsh_autosuggest_bind_widget() {
# Completion widget
completion:*)
_zsh_autosuggest_incr_bind_count $widget
eval "zle -C $prefix$bind_count-${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}"
local -a widget_split=("${(@s.:.)widgets[$widget]}")
eval 'zle -C "$prefix$bind_count-${(q)widget}" "${widget_split[2]}" "${widget_split[3]}"'
;;
esac