diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index f1df2406876ae5503d98b0ae99fee14e9f370aca..610868dc85d9580a67d17235ec48c439bd01285a 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -17862,16 +17862,9 @@ impl Editor { .selections .disjoint_anchors() .iter() - .map(|selection| { - let range = if selection.reversed { - selection.end.text_anchor..selection.start.text_anchor - } else { - selection.start.text_anchor..selection.end.text_anchor - }; - Location { - buffer: buffer.clone(), - range, - } + .map(|range| Location { + buffer: buffer.clone(), + range: range.start.text_anchor..range.end.text_anchor, }) .collect::>();