Merge pull request #74 from reinhrst/master

fix for AUTOSUGGESTION_ACCEPT_RIGHT_ARROW in vi-mode
This commit is contained in:
Michael Robinson 2015-11-09 09:47:41 +13:00
commit b1725e9e74

View file

@ -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 "$@"