From a649c9299cd52e9ba245a2e1f7dd6e37504f9e24 Mon Sep 17 00:00:00 2001 From: Simon Stieger Date: Wed, 7 Jan 2026 02:09:39 +0100 Subject: [PATCH] Handle empty fish_key_bindings in fish 4.3 (fixes #624) Fish 4.3 seems to leave $fish_key_bindings empty by default, causing a false positive in the vi_mode check. --- functions/_tide_item_vi_mode.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/_tide_item_vi_mode.fish b/functions/_tide_item_vi_mode.fish index 582855d0..d8bd9dfa 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" && test "$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