mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-02-06 09:55:30 +08:00
Fixed the style of the test again
This commit is contained in:
parent
4c88da24fa
commit
5fd85405b3
@ -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 New Issue
Block a user