From 66aa318713277cb66676f77d63fb2696b54882df Mon Sep 17 00:00:00 2001 From: brook hong Date: Thu, 29 Sep 2022 21:40:28 +0800 Subject: [PATCH] Fix #653 widget name '.foo' is protected --- zsh-autosuggestions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index b19cac7..7a8dd73 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