Clear selection goal column when cutting a full line

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2022-02-04 10:19:26 -07:00
co-authored by Antonio Scandurra Max Brunsfeld
parent ed37ad37fb
commit 3f897ed588
+1
View File
@@ -2496,6 +2496,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) {