Fix right prompt being mangled by icons in config menu

This commit is contained in:
Ilan Cosman 2022-06-16 09:38:00 -07:00
parent 21b8b33243
commit fd6c1b0b90

View File

@ -1,6 +1,11 @@
function _fake_tide_pwd function _fake_tide_pwd
set -g _tide_pwd_len 5 set -l out (
set_color $fake_tide_pwd_color_dirs set_color $fake_tide_pwd_color_dirs
echo -ns $fake_tide_pwd_icon' ' '~/' \ echo -ns $fake_tide_pwd_icon' ' '~/'
(set_color -o $fake_tide_pwd_color_anchors)'src'(set_color normal -b $fake_tide_pwd_bg_color) set_color -o $fake_tide_pwd_color_anchors
echo -ns src
set_color normal -b $fake_tide_pwd_bg_color
)
set -g _tide_pwd_len (string length --visible $out)
echo -ns $out
end end