__fish_git_prompt: fix stateseparator color in informative_status

In informative_status mode stateseparator did not use
fish_git_prompt_color settings.
This commit is contained in:
Vladimir Rudnyh 2015-07-12 06:58:52 +03:00 committed by ridiculousfish
parent 1e32f9431d
commit d49f6e1b29

View file

@ -373,9 +373,11 @@ function __fish_git_prompt --description "Prompt function for Git"
__fish_git_prompt_validate_chars
__fish_git_prompt_validate_colors
set -l space "$___fish_git_prompt_color$___fish_git_prompt_char_stateseparator$___fish_git_prompt_color_done"
if test "true" = $inside_worktree
if test -n "$__fish_git_prompt_show_informative_status"
set informative_status "$___fish_git_prompt_char_stateseparator"(__fish_git_prompt_informative_status)
set informative_status "$space"(__fish_git_prompt_informative_status)
else
if test -n "$__fish_git_prompt_showdirtystate"
set -l config (command git config --bool bash.showDirtyState)
@ -440,7 +442,6 @@ function __fish_git_prompt --description "Prompt function for Git"
end
# Formatting
set -l space "$___fish_git_prompt_color$___fish_git_prompt_char_stateseparator$___fish_git_prompt_color_done"
set -l f "$w$i$s$u"
if test -n "$f"
set f "$space$f"