This commit is contained in:
Conrad Irwin 2023-07-28 15:36:14 -06:00
parent 0c15ef7305
commit 9cb0ce7745

View File

@ -498,7 +498,6 @@ impl<'a> MutableSelectionsCollection<'a> {
T: ToOffset + ToPoint + Ord + std::marker::Copy + std::fmt::Debug,
{
let buffer = self.buffer.read(self.cx).snapshot(self.cx);
selections.sort_unstable_by_key(|s| s.start);
// Merge overlapping selections.
let mut i = 1;