From b6396ea2eb92e3839a4817737febafba4524cf60 Mon Sep 17 00:00:00 2001 From: Arnaud Venturi Date: Mon, 7 May 2018 10:12:11 +0200 Subject: [PATCH] Fix quotes for code style consistency --- src/widgets.zsh | 2 +- zsh-autosuggestions.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets.zsh b/src/widgets.zsh index 43cd974..56b0cca 100644 --- a/src/widgets.zsh +++ b/src/widgets.zsh @@ -168,7 +168,7 @@ _zsh_autosuggest_partial_accept() { # instead of after it. We increment it by 1 to keep the following logic # working even in this case. CURSOR_POS=$CURSOR - if [ $KEYMAP = 'vicmd' ]; then + if [[ "$KEYMAP" = "vicmd" ]]; then (( CURSOR_POS++ )) fi diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 96996dc..4aa85df 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -446,7 +446,7 @@ _zsh_autosuggest_partial_accept() { # instead of after it. We increment it by 1 to keep the following logic # working even in this case. CURSOR_POS=$CURSOR - if [ $KEYMAP = 'vicmd' ]; then + if [[ "$KEYMAP" = "vicmd" ]]; then (( CURSOR_POS++ )) fi