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

Fixes #337
This commit is contained in:
Eric Freese committed 2018-11-19 15:15:48 -07:00
1 parent 822a1f30e0
commit 4097d6e0ae
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ _zsh_autosuggest_bind_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
+1 -1
View File
@@ -206,7 +206,7 @@ _zsh_autosuggest_bind_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