Change summary
crates/editor/src/lib.rs | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
Detailed changes
@@ -1999,16 +1999,7 @@ impl Editor {
let mut to_unfold = Vec::new();
let mut new_selections = Vec::new();
for selection in selections.iter() {
- if selection.start.row != selection.end.row {
- new_selections.push(Selection {
- id: post_inc(&mut self.next_selection_id),
- start: selection.start,
- end: selection.start,
- reversed: false,
- goal: SelectionGoal::None,
- });
- }
- for row in selection.start.row + 1..selection.end.row {
+ for row in selection.start.row..selection.end.row {
let cursor = Point::new(row, buffer.line_len(row));
new_selections.push(Selection {
id: post_inc(&mut self.next_selection_id),