Skip to content

Commit

Permalink
Fix zsh-users#653 widget name '.foo' is protected
Browse files Browse the repository at this point in the history
  • Loading branch information
brookhong committed Sep 29, 2022
1 parent a411ef3 commit 66aa318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-autosuggestions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66aa318

Please sign in to comment.