fish_git_prompt: Always allow for displaying stashstate

This wasn't added to the prompt status order, so it was computed and
then not used for the informative prompt.

We still check later if we should compute it, so this is harmless if
showstashstate is unset.

Fixes #7136.
This commit is contained in:
Fabian Homborg 2020-06-20 09:32:07 +02:00
parent 92b987145e
commit 894ec3dfd4

View file

@ -529,10 +529,7 @@ function __fish_git_prompt_dirty --description "fish_git_prompt helper, tells wh
return $os
end
set -g ___fish_git_prompt_status_order stagedstate invalidstate dirtystate untrackedfiles
if set -q __fish_git_prompt_showstashstate
set -a ___fish_git_prompt_status_order stashstate
end
set -g ___fish_git_prompt_status_order stagedstate invalidstate dirtystate untrackedfiles stashstate
function __fish_git_prompt_informative_status