From c627f11843724b9dcc0e166b100145371e06ae46 Mon Sep 17 00:00:00 2001 From: Rasmus Wejlgaard Date: Sat, 23 May 2026 14:05:17 +0100 Subject: [PATCH] fix: vi-mode chevron enabled when vi-mode disabled --- functions/_tide_item_character.fish | 2 +- functions/_tide_item_vi_mode.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/_tide_item_character.fish b/functions/_tide_item_character.fish index 10bb3244..7f8f1279 100644 --- a/functions/_tide_item_character.fish +++ b/functions/_tide_item_character.fish @@ -3,7 +3,7 @@ function _tide_item_character set -q add_prefix || echo -ns ' ' - test "$fish_key_bindings" = fish_default_key_bindings && echo -ns $tide_character_icon || + test -z "$fish_key_bindings" -o "$fish_key_bindings" = fish_default_key_bindings && echo -ns $tide_character_icon || switch $fish_bind_mode case insert echo -ns $tide_character_icon diff --git a/functions/_tide_item_vi_mode.fish b/functions/_tide_item_vi_mode.fish index 582855d0..5dc0f1d5 100644 --- a/functions/_tide_item_vi_mode.fish +++ b/functions/_tide_item_vi_mode.fish @@ -1,5 +1,5 @@ function _tide_item_vi_mode - test "$fish_key_bindings" != fish_default_key_bindings && switch $fish_bind_mode + test -n "$fish_key_bindings" -a "$fish_key_bindings" != fish_default_key_bindings && switch $fish_bind_mode case default tide_vi_mode_bg_color=$tide_vi_mode_bg_color_default tide_vi_mode_color=$tide_vi_mode_color_default \ _tide_print_item vi_mode $tide_vi_mode_icon_default