mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
🎨
This commit is contained in:
parent
0fc7308932
commit
555e705ccb
@ -1083,8 +1083,7 @@ impl Buffer {
|
||||
let mut new_ropes =
|
||||
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 fragment_ids {
|
||||
for fragment_id in self.fragment_ids_for_edits(undo.counts.keys()) {
|
||||
let preceding_fragments = old_fragments.slice(&Some(fragment_id), Bias::Left, &None);
|
||||
new_ropes.push_tree(preceding_fragments.summary().text);
|
||||
new_fragments.push_tree(preceding_fragments, &None);
|
||||
|
Loading…
Reference in New Issue
Block a user