aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--share/functions/__fish_hg_prompt.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_hg_prompt.fish b/share/functions/__fish_hg_prompt.fish
index 6a9f00a9..85028049 100644
--- a/share/functions/__fish_hg_prompt.fish
+++ b/share/functions/__fish_hg_prompt.fish
@@ -78,7 +78,7 @@ function __fish_hg_prompt --description 'Write out the hg prompt'
end
end
- if string match -r '^[AMCD]' $repo_status
+ if string match -r '^[AMCD]' $repo_status >/dev/null
set_color $fish_color_hg_modified
else
set_color $fish_color_hg_dirty