functions/fish_git_prompt: Fix space prefix for verbose showupstream

This created another local version of the variable just for the if-block.

Can't say I love the space prefix, but then I think we have too many
of these modes anyway.
This commit is contained in:
Fabian Homborg 2019-03-19 10:27:25 +01:00
parent f6226f0802
commit a649c5293e

View file

@ -289,7 +289,7 @@ function __fish_git_prompt_show_upstream --description "Helper function for fish
set -l prefix "$___fish_git_prompt_char_upstream_prefix"
# Using two underscore version to check if user explicitly set to nothing
if not set -q __fish_git_prompt_char_upstream_prefix
set -l prefix " "
set prefix " "
end
echo $count | read -l behind ahead