0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

patch 8.2.2966: ml_get errors after recovering a file

Problem:    ml_get errors after recovering a file. (Yegappan Lakshmanan)
Solution:   Fix the cursor position after deleting lines.
This commit is contained in:
Bram Moolenaar
2021-06-09 12:33:40 +02:00
parent b55d618f19
commit e3f50ad640
2 changed files with 3 additions and 0 deletions

View File

@@ -1696,6 +1696,7 @@ ml_recover(int checkext)
&& !(curbuf->b_ml.ml_flags & ML_EMPTY))
ml_delete(curbuf->b_ml.ml_line_count);
curbuf->b_flags |= BF_RECOVERED;
check_cursor();
recoverymode = FALSE;
if (got_int)