When looking for 'wiggles' we need to track whole lines
in the original file. But when looking for an end-of-line
we shouldn't look at an merge-item that doesn't even
exist in the original file.
Reported-by: Chris Peterson <cpeterso@cpeterso.com>
Signed-off-by: NeilBrown <neilb@suse.de>
}
i = j - 1;
}
- if (ends_line(af.list[m[i].a+m[i].al-1])) {
+ if (m[i].al > 0 && ends_line(af.list[m[i].a+m[i].al-1])) {
unmatched = 0;
changed = 0;
}