mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Merge pull request #74 from reinhrst/master
fix for AUTOSUGGESTION_ACCEPT_RIGHT_ARROW in vi-mode
This commit is contained in:
commit
b1725e9e74
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ autosuggest-tab() {
|
||||||
}
|
}
|
||||||
|
|
||||||
autosuggest-accept-suggestion() {
|
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 "$@"
|
zle autosuggest-end-of-line-orig "$@"
|
||||||
else
|
else
|
||||||
zle autosuggest-${WIDGET}-orig "$@"
|
zle autosuggest-${WIDGET}-orig "$@"
|
||||||
|
|
Loading…
Reference in a new issue