Report new_lines
extent correctly when coalescing edits
This commit is contained in:
parent
9977248926
commit
fcb217b9e8
1 changed files with 1 additions and 0 deletions
|
@ -2007,6 +2007,7 @@ impl<'a, F: FnMut(&FragmentSummary) -> bool> Iterator for Edits<'a, F> {
|
||||||
if let Some(ref mut change) = change {
|
if let Some(ref mut change) = change {
|
||||||
if change.new_bytes.end == self.new_offset {
|
if change.new_bytes.end == self.new_offset {
|
||||||
change.new_bytes.end += fragment.len;
|
change.new_bytes.end += fragment.len;
|
||||||
|
change.new_lines.end += fragment_lines;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue