Start at the end of the last transform when catching up to edits during wrapping

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2021-11-17 19:44:17 -07:00
parent 8230dd9a3b
commit c5956a0363

View file

@ -415,7 +415,7 @@ impl Snapshot {
while let Some(edit) = row_edits.next() {
if edit.new_rows.start > new_transforms.summary().input.lines.row {
let summary = new_tab_snapshot.text_summary_for_range(
TabPoint::new(new_transforms.summary().input.lines.row, 0)
TabPoint(new_transforms.summary().input.lines)
..TabPoint::new(edit.new_rows.start, 0),
);
new_transforms.push_or_extend(Transform::isomorphic(summary));