From ed802d9b122f8e93c1250a11b88e20967c543bb5 Mon Sep 17 00:00:00 2001 From: UrNightmaree Date: Sat, 2 Sep 2023 16:07:45 +0800 Subject: [PATCH] Fix `widget name '....' is protected closes #653 --- zsh-autosuggestions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b19cac7..5e7806b 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -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