From fc4576758c640a59579a58e082abbec1c7f88b9c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 18 Sep 2015 13:13:09 +0200 Subject: [PATCH] fix for AUTOSUGGESTION_ACCEPT_RIGHT_ARROW in vi-mode --- autosuggestions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autosuggestions.zsh b/autosuggestions.zsh index 96f5c81..66bd4e2 100644 --- a/autosuggestions.zsh +++ b/autosuggestions.zsh @@ -239,7 +239,7 @@ autosuggest-tab() { } autosuggest-accept-suggestion() { - if [[ AUTOSUGGESTION_ACCEPT_RIGHT_ARROW -eq 1 && "$WIDGET" == 'forward-char' ]]; then + if [[ AUTOSUGGESTION_ACCEPT_RIGHT_ARROW -eq 1 && ("$WIDGET" == 'forward-char' || "$WIDGET" == 'vi-forward-char') ]]; then zle autosuggest-end-of-line-orig "$@" else zle autosuggest-${WIDGET}-orig "$@"