Fix `widget name '....' is protected

closes #653
This commit is contained in:
UrNightmaree 2023-09-02 16:07:45 +08:00
parent 9908eb49a3
commit ed802d9b12

View file

@ -186,7 +186,7 @@ _zsh_autosuggest_bind_widget() {
}"
# Create the bound widget
zle -N -- $widget _zsh_autosuggest_bound_${bind_count}_$widget
[[ "$widget" = .* ]] || zle -N -- $widget _zsh_autosuggest_bound_${bind_count}_$widget
}
# Map all configured widgets to the right autosuggest widgets