mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
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 change.new_bytes.end == self.new_offset {
|
||||
change.new_bytes.end += fragment.len;
|
||||
change.new_lines.end += fragment_lines;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue