From: Bert Wesarg Date: Mon, 30 Nov 2009 07:07:22 GMT Subject: Re: [PATCH v3] Give the hunk comment its own color Message-ID: <36ca99e90911292307w769913fdn1f610eeb065b41e@mail.gmail.com> In-Reply-To: <36ca99e90911280408v186777f1h22254744fb61bf1f@mail.gmail.com> >>        /* blank before the func header */ >>        for (cp = ep; ep - line < len; ep++) >>                if (*ep != ' ' && *ep != 't') > Please check that its really an *ep != '\t'. Its wrong in this mail, I > see only an *ep != 't'. Obviously, you have not checked it. Please squash this in: diff --git i/diff.c w/diff.c index eaa1983..e126304 100644 --- i/diff.c +++ w/diff.c @@ -376,7 +376,7 @@ static void emit_hunk_header(struct emit_callback *ecbdata, /* blank before the func header */ for (cp = ep; ep - line < len; ep++) - if (*ep != ' ' && *ep != 't') + if (*ep != ' ' && *ep != '\t') break; if (ep != cp) emit_line(ecbdata->file, plain, reset, cp, ep - cp); Bert