Fix vim panic when over-shooting with j
This commit is contained in:
parent
4331cb8058
commit
8de67fd9d9
3 changed files with 33 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue