Fixed the style of the test again

This commit is contained in:
Arnaud Venturi 2018-05-07 13:37:09 +02:00
parent 4c88da24fa
commit 5fd85405b3
2 changed files with 4 additions and 4 deletions

View file

@ -167,7 +167,7 @@ _zsh_autosuggest_partial_accept() {
# In vicmd keymap, the cursor is placed on the current character # In vicmd keymap, the cursor is placed on the current character
# instead of after it. We increment it by 1 to keep the following logic # instead of after it. We increment it by 1 to keep the following logic
# working even in thi case. # working even in thi case.
if [ $KEYMAP = 'vicmd' ]; then if [[ "$KEYMAP" = "vicmd" ]]; then
(( CURSOR++ )) (( CURSOR++ ))
fi fi
@ -184,7 +184,7 @@ _zsh_autosuggest_partial_accept() {
fi fi
# Restore CURSOR # Restore CURSOR
if [ $KEYMAP = 'vicmd' ]; then if [[ "$KEYMAP" = "vicmd" ]]; then
(( CURSOR-- )) (( CURSOR-- ))
fi fi

View file

@ -445,7 +445,7 @@ _zsh_autosuggest_partial_accept() {
# In vicmd keymap, the cursor is placed on the current character # In vicmd keymap, the cursor is placed on the current character
# instead of after it. We increment it by 1 to keep the following logic # instead of after it. We increment it by 1 to keep the following logic
# working even in thi case. # working even in thi case.
if [ $KEYMAP = 'vicmd' ]; then if [[ "$KEYMAP" = "vicmd" ]]; then
(( CURSOR++ )) (( CURSOR++ ))
fi fi
@ -462,7 +462,7 @@ _zsh_autosuggest_partial_accept() {
fi fi
# Restore CURSOR # Restore CURSOR
if [ $KEYMAP = 'vicmd' ]; then if [[ "$KEYMAP" = "vicmd" ]]; then
(( CURSOR-- )) (( CURSOR-- ))
fi fi