Don't clone visible_text for splicing edits into the parse tree

This commit is contained in:
Antonio Scandurra
2021-05-22 12:34:35 +02:00
parent 64b1113455
commit 3a576f0b65
2 changed files with 20 additions and 10 deletions
+2
View File
@@ -100,6 +100,7 @@ impl FoldMap {
edits.push(Edit {
old_range: range.clone(),
new_range: range.clone(),
..Default::default()
});
}
}
@@ -144,6 +145,7 @@ impl FoldMap {
edits.push(Edit {
old_range: offset_range.clone(),
new_range: offset_range,
..Default::default()
});
fold_ixs_to_delete.push(*folds_cursor.start());
folds_cursor.next();