This commit is contained in:
Mikayla 2024-01-17 14:44:10 -08:00
parent 0711476fd5
commit 9a7d2e3fe4
No known key found for this signature in database

View File

@ -206,10 +206,8 @@ pub fn visual_block_motion(
row,
laid_out_line.closest_index_for_x(positions.start) as u32,
);
let mut end = DisplayPoint::new(
row,
laid_out_line.closest_index_for_x(positions.end) as u32,
);
let mut end =
DisplayPoint::new(row, laid_out_line.closest_index_for_x(positions.end) as u32);
if end <= start {
if start.column() == map.line_len(start.row()) {
end = start;