Report new_lines extent correctly when coalescing edits

This commit is contained in:
Antonio Scandurra 2021-10-28 11:32:10 +02:00
parent 9977248926
commit fcb217b9e8

View file

@ -2007,6 +2007,7 @@ impl<'a, F: FnMut(&FragmentSummary) -> bool> Iterator for Edits<'a, F> {
if let Some(ref mut change) = change {
if change.new_bytes.end == self.new_offset {
change.new_bytes.end += fragment.len;
change.new_lines.end += fragment_lines;
} else {
break;
}