Support widgets starting with dashes (ex: `-a-widget`)

Fixes #337
pull/338/head
Eric Freese 7 years ago
parent 5549b68e6e
commit 4e466f0e4e

@ -69,7 +69,7 @@ _zsh_autosuggest_bind_widget() {
}" }"
# Create the bound widget # Create the bound widget
zle -N $widget _zsh_autosuggest_bound_${bind_count}_$widget zle -N -- $widget _zsh_autosuggest_bound_${bind_count}_$widget
} }
# Map all configured widgets to the right autosuggest widgets # Map all configured widgets to the right autosuggest widgets

@ -206,7 +206,7 @@ _zsh_autosuggest_bind_widget() {
}" }"
# Create the bound widget # Create the bound widget
zle -N $widget _zsh_autosuggest_bound_${bind_count}_$widget zle -N -- $widget _zsh_autosuggest_bound_${bind_count}_$widget
} }
# Map all configured widgets to the right autosuggest widgets # Map all configured widgets to the right autosuggest widgets

Loading…
Cancel
Save