mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
🎨
This commit is contained in:
parent
0fc7308932
commit
555e705ccb
1 changed files with 1 additions and 2 deletions
|
@ -1083,8 +1083,7 @@ impl Buffer {
|
||||||
let mut new_ropes =
|
let mut new_ropes =
|
||||||
RopeBuilder::new(self.visible_text.cursor(0), self.deleted_text.cursor(0));
|
RopeBuilder::new(self.visible_text.cursor(0), self.deleted_text.cursor(0));
|
||||||
|
|
||||||
let fragment_ids = self.fragment_ids_for_edits(undo.counts.keys());
|
for fragment_id in self.fragment_ids_for_edits(undo.counts.keys()) {
|
||||||
for fragment_id in fragment_ids {
|
|
||||||
let preceding_fragments = old_fragments.slice(&Some(fragment_id), Bias::Left, &None);
|
let preceding_fragments = old_fragments.slice(&Some(fragment_id), Bias::Left, &None);
|
||||||
new_ropes.push_tree(preceding_fragments.summary().text);
|
new_ropes.push_tree(preceding_fragments.summary().text);
|
||||||
new_fragments.push_tree(preceding_fragments, &None);
|
new_fragments.push_tree(preceding_fragments, &None);
|
||||||
|
|
Loading…
Reference in a new issue