]> git.neil.brown.name Git - wiggle.git/commit
vpatch: fix check_line to stop at hunk headers.
authorNeilBrown <neilb@suse.de>
Tue, 13 Nov 2012 00:16:09 +0000 (11:16 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 13 Nov 2012 00:16:09 +0000 (11:16 +1100)
commit0db3a999746fa190868b4feed38d1f69cdb284f3
treebbefab6b1f8ef37446e8ff8b8dc902baf9d08e6e
parentb21149b160159047abeda56487dda0f54bdeb82e
vpatch: fix check_line to stop at hunk headers.

check_line() includes invisible bits because they could in some sense
be part of 'this' line.  It ignore hunk headers, but it really should stop
at them, because nothing before could be related to this line.

This fixes a problem where 'N' and 'P' would find hunk headers
which isn't really helpful.

Signed-off-by: NeilBrown <neilb@suse.de>
vpatch.c