]> git.neil.brown.name Git - wiggle.git/commitdiff
browse/search: don't match strings in the hunk-header.
authorNeil Brown <neilb@suse.de>
Thu, 10 May 2012 06:44:10 +0000 (16:44 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 10 May 2012 06:44:10 +0000 (16:44 +1000)
Signed-off-by: NeilBrown <neilb@suse.de>
vpatch.c

index 376eff2bbd73c184f9d40df7bbcd9b16ad3d8fa9..ce81743ae0eebdb939be657c9987820fa53facfd 100644 (file)
--- 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))