Fix vim panic when over-shooting with j

This commit is contained in:
Conrad Irwin 2023-09-20 11:14:00 -06:00
parent 4331cb8058
commit 8de67fd9d9
3 changed files with 33 additions and 1 deletions

View file

@ -533,7 +533,7 @@ fn down(
let new_row = cmp::min(
start.row() + times as u32,
map.buffer_snapshot.max_point().row,
map.fold_snapshot.max_point().row(),
);
let new_col = cmp::min(goal_column, map.fold_snapshot.line_len(new_row));
let point = map.fold_point_to_display_point(