diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index bd8ab3d9f87e052b3b2fc488d7c44dc625ff50a1..b0f7bbe478ab50ec9aa8b6beac35473f9b3acd04 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -2498,6 +2498,7 @@ impl Editor { if is_entire_line { selection.start = Point::new(selection.start.row, 0); selection.end = cmp::min(max_point, Point::new(selection.end.row + 1, 0)); + selection.goal = SelectionGoal::None; } let mut len = 0; for chunk in buffer.text_for_range(selection.start..selection.end) {