fix splitting and combining cursors

This commit is contained in:
alice pellerin
2026-04-13 02:05:13 -05:00
parent 901350508d
commit 3e24d00af4
2 changed files with 18 additions and 4 deletions
+3 -1
View File
@@ -425,7 +425,9 @@ impl Buffer {
});
self.primary_cursor = new_cursors.next().unwrap();
self.cursors = new_cursors.collect();
self.cursors = new_cursors
.sorted_by_key(|cursor| cursor.head)
.collect();
self.clamp_screen_to_primary_cursor(window_size);
}