Use array indices for forward compatibility

See issue #152
This commit is contained in:
Eric Freese 2016-04-25 14:23:56 -06:00
parent 945c660856
commit 964773aa75
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ _zsh_autosuggest_bind_widget() {
# Completion widget
completion:*)
eval "zle -C $prefix${(q)widget} ${${widgets[$widget]#*:}/:/ }"
eval "zle -C $prefix${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}"
;;
esac

View file

@ -138,7 +138,7 @@ _zsh_autosuggest_bind_widget() {
# Completion widget
completion:*)
eval "zle -C $prefix${(q)widget} ${${widgets[$widget]#*:}/:/ }"
eval "zle -C $prefix${(q)widget} ${${(s.:.)widgets[$widget]}[2,3]}"
;;
esac