From 1f0a972ac00d938b3307a2fdb6da1e37f461a95b Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Sun, 12 Dec 2021 02:17:44 -0800 Subject: [PATCH] Fix character item spacing issue --- functions/_tide_item_character.fish | 2 ++ .../tide/configure/functions/_fake_tide_item_character.fish | 1 + 2 files changed, 3 insertions(+) diff --git a/functions/_tide_item_character.fish b/functions/_tide_item_character.fish index d03715e..10bb324 100644 --- a/functions/_tide_item_character.fish +++ b/functions/_tide_item_character.fish @@ -1,6 +1,8 @@ function _tide_item_character test $_tide_status = 0 && set_color $tide_character_color || set_color $tide_character_color_failure + set -q add_prefix || echo -ns ' ' + test "$fish_key_bindings" = fish_default_key_bindings && echo -ns $tide_character_icon || switch $fish_bind_mode case insert diff --git a/functions/tide/configure/functions/_fake_tide_item_character.fish b/functions/tide/configure/functions/_fake_tide_item_character.fish index 3415cd7..73ae055 100644 --- a/functions/tide/configure/functions/_fake_tide_item_character.fish +++ b/functions/tide/configure/functions/_fake_tide_item_character.fish @@ -1,4 +1,5 @@ function _fake_tide_item_character set_color $fake_tide_character_color + contains newline $fake_tide_left_prompt_items || echo -ns ' ' echo -ns $fake_tide_character_icon end