mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Fixed the style of the test again
This commit is contained in:
parent
4c88da24fa
commit
5fd85405b3
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue