Always add space after prompt

This commit is contained in:
Ilan Cosman 2021-03-17 11:39:03 -07:00
parent a72a76574a
commit 4a00b7fe79
2 changed files with 6 additions and 6 deletions

View File

@ -6,17 +6,17 @@ function _tide_item_prompt_char
end
if test "$fish_key_bindings" = fish_default_key_bindings
printf '%s' $tide_prompt_char_icon' '
printf '%s' $tide_prompt_char_icon
else
switch $fish_bind_mode
case default
printf '%s' $tide_prompt_char_vi_default_icon' '
printf '%s' $tide_prompt_char_vi_default_icon
case insert
printf '%s' $tide_prompt_char_vi_insert_icon' '
printf '%s' $tide_prompt_char_vi_insert_icon
case replace replace_one
printf '%s' $tide_prompt_char_vi_replace_icon' '
printf '%s' $tide_prompt_char_vi_replace_icon
case visual
printf '%s' $tide_prompt_char_vi_visual_icon' '
printf '%s' $tide_prompt_char_vi_visual_icon
end
end
end

View File

@ -31,5 +31,5 @@ function _tide_prompt
end
set -U _tide_right_prompt_display_$_tide_fish_pid $rightPrompt[$leftPromptHeight]
printf '%s' $leftPrompt[-1]
printf '%s' $leftPrompt[-1]' '
end