Review
This commit is contained in:
parent
0c15ef7305
commit
9cb0ce7745
1 changed files with 0 additions and 1 deletions
|
@ -498,7 +498,6 @@ impl<'a> MutableSelectionsCollection<'a> {
|
||||||
T: ToOffset + ToPoint + Ord + std::marker::Copy + std::fmt::Debug,
|
T: ToOffset + ToPoint + Ord + std::marker::Copy + std::fmt::Debug,
|
||||||
{
|
{
|
||||||
let buffer = self.buffer.read(self.cx).snapshot(self.cx);
|
let buffer = self.buffer.read(self.cx).snapshot(self.cx);
|
||||||
|
|
||||||
selections.sort_unstable_by_key(|s| s.start);
|
selections.sort_unstable_by_key(|s| s.start);
|
||||||
// Merge overlapping selections.
|
// Merge overlapping selections.
|
||||||
let mut i = 1;
|
let mut i = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue