Code

diff --color: use reset sequence when we mean reset.
authorJunio C Hamano <junkio@cox.net>
Sat, 24 Jun 2006 11:20:39 +0000 (04:20 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 24 Jun 2006 11:24:34 +0000 (04:24 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c

diff --git a/diff.c b/diff.c
index 1db0285cd740da87b1c0f9d3a32ba429f19cad74..f89224f75f54bbedffd4f9f9d8d975dfe73507ad 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -616,7 +616,7 @@ static void builtin_diff(const char *name_a,
        const char *lbl[2];
        char *a_one, *b_two;
        const char *set = get_color(o->color_diff, DIFF_METAINFO);
-       const char *reset = get_color(o->color_diff, DIFF_PLAIN);
+       const char *reset = get_color(o->color_diff, DIFF_RESET);
 
        a_one = quote_two("a/", name_a);
        b_two = quote_two("b/", name_b);