aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_mode_prompt.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/fish_mode_prompt.fish')
-rw-r--r--share/functions/fish_mode_prompt.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/fish_mode_prompt.fish b/share/functions/fish_mode_prompt.fish
index e9b49e5b..eed75d42 100644
--- a/share/functions/fish_mode_prompt.fish
+++ b/share/functions/fish_mode_prompt.fish
@@ -1,7 +1,7 @@
# The fish_mode_prompt function is prepended to the prompt
function fish_mode_prompt --description "Displays the current mode"
# Do nothing if not in vi mode
- if set -q __fish_vi_mode
+ if test "$fish_key_bindings" = "fish_vi_key_bindings"
switch $fish_bind_mode
case default
set_color --bold --background red white