From a649c5293e0e03560a4c7c909688a9baae7f2f9b Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 19 Mar 2019 10:27:25 +0100 Subject: [PATCH] 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. --- share/functions/fish_git_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_git_prompt.fish b/share/functions/fish_git_prompt.fish index ef839c611..cf3623bfa 100644 --- a/share/functions/fish_git_prompt.fish +++ b/share/functions/fish_git_prompt.fish @@ -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