mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-23 10:21:15 +01:00
fix for AUTOSUGGESTION_ACCEPT_RIGHT_ARROW in vi-mode
This commit is contained in:
parent
cbaf7ced6e
commit
fc4576758c
1 changed files with 1 additions and 1 deletions
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue