From: Neil Brown Date: Thu, 10 May 2012 06:44:10 +0000 (+1000) Subject: browse/search: don't match strings in the hunk-header. X-Git-Tag: v0.9~19 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=6b31e9f4f3dc3796520e8950579bf59e8fae47cc;p=wiggle.git browse/search: don't match strings in the hunk-header. Signed-off-by: NeilBrown --- diff --git a/vpatch.c b/vpatch.c index 376eff2..ce81743 100644 --- a/vpatch.c +++ b/vpatch.c @@ -745,7 +745,7 @@ static int mcontains(struct mpos pos, do { e = prev_melmnt(&pos.p, fm, fb, fa, m); - if (e.start) { + if (e.start && e.start[0]) { int i; int curs_i; if (same_mp(pos.p, curs->pos))