Gracefully handle being sourced multiple times

Should fix #126
pull/221/head
Eric Freese 8 years ago
parent a0fcd81ce1
commit 75e850577d

@ -16,6 +16,7 @@ _zsh_autosuggest_bind_widget() {
# User-defined widget
user:*)
zle -l "$prefix$widget" && zle -N "$widget" ${widgets[$prefix$widget]#*:}
zle -N $prefix$widget ${widgets[$widget]#*:}
;;

@ -150,6 +150,7 @@ _zsh_autosuggest_bind_widget() {
# User-defined widget
user:*)
zle -l "$prefix$widget" && zle -N "$widget" ${widgets[$prefix$widget]#*:}
zle -N $prefix$widget ${widgets[$widget]#*:}
;;

Loading…
Cancel
Save