diff --git a/.ruby-version b/.ruby-version index 2bf1c1c..8e8299d 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.3.1 +2.4.2 diff --git a/src/widgets.zsh b/src/widgets.zsh index 7461001..f470e71 100644 --- a/src/widgets.zsh +++ b/src/widgets.zsh @@ -116,6 +116,8 @@ _zsh_autosuggest_suggest() { _zsh_autosuggest_accept() { # Accepting the whole line is basically a specific case of # accepting partially with "end-of-line" widget + # NB : we can't directly call end-of-line because since we wrap it, + # it would cause a recursive call to it # TODO : find a non-hardcoded way to call this widget _zsh_autosuggest_partial_accept "autosuggest-orig-1-end-of-line" } diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 3125bab..23a13b0 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -381,6 +381,8 @@ _zsh_autosuggest_suggest() { _zsh_autosuggest_accept() { # Accepting the whole line is basically a specific case of # accepting partially with "end-of-line" widget + # NB : we can't directly call end-of-line because since we wrap it, + # it would cause a recursive call to it # TODO : find a non-hardcoded way to call this widget _zsh_autosuggest_partial_accept "autosuggest-orig-1-end-of-line" }