diff --git a/src/bind.zsh b/src/bind.zsh index 6c6d8f9..757f640 100644 --- a/src/bind.zsh +++ b/src/bind.zsh @@ -38,7 +38,7 @@ _zsh_autosuggest_bind_widget() { # zle without the `-w` flag (e.g. `zle self-insert` instead of # `zle self-insert -w`). eval "_zsh_autosuggest_bound_$widget() { - _zsh_autosuggest_widget_$autosuggest_action $prefix$widget $@ + _zsh_autosuggest_widget_$autosuggest_action $prefix$widget \$@ }" # Create the bound widget diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index edb27e1..01f8c4d 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -140,7 +140,7 @@ _zsh_autosuggest_bind_widget() { # zle without the `-w` flag (e.g. `zle self-insert` instead of # `zle self-insert -w`). eval "_zsh_autosuggest_bound_$widget() { - _zsh_autosuggest_widget_$autosuggest_action $prefix$widget $@ + _zsh_autosuggest_widget_$autosuggest_action $prefix$widget \$@ }" # Create the bound widget