diff --git a/src/bind.zsh b/src/bind.zsh index 008848a..384ae08 100644 --- a/src/bind.zsh +++ b/src/bind.zsh @@ -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 diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 1e8004f..68438d4 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -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