From de0aaeabf77dbc1c231d511981f0b80c76b08c2e Mon Sep 17 00:00:00 2001
From: Derek Stavis <derek@dba.eng.br>
Date: Thu, 21 Jan 2016 09:47:11 -0200
Subject: [PATCH] git_ahead: Fix indicator override

---
 lib/git/git_ahead.fish | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/lib/git/git_ahead.fish b/lib/git/git_ahead.fish
index e368cd8..59ea054 100644
--- a/lib/git/git_ahead.fish
+++ b/lib/git/git_ahead.fish
@@ -7,16 +7,12 @@ function git_ahead -a ahead behind diverged none
   case ""
     # no upstream
   case "0"\t"0"
-    test -z "$none"; and echo "$none"
-      or echo ""
+    test -n "$none"; and echo "$none"; or echo ""
   case "*"\t"0"
-    test -z "$behind"; and echo "$behind"
-      or echo "-"
+    test -n "$behind"; and echo "$behind"; or echo "-"
   case "0"\t"*"
-    test -z "$ahead"; and echo "$ahead"
-      or echo "+"
+    test -n "$ahead"; and echo "$ahead"; or echo "+"
   case "*"
-    test -z "$diverged"; and echo "$diverged"
-      or echo "±"
+    test -n "$diverged"; and echo "$diverged"; or echo "±"
   end
 end
-- 
GitLab