vim-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.
e3f50ad640
This commit is contained in:
Jan Edmund Lazo 2021-06-09 21:04:13 -04:00
parent 1df8a34a7b
commit 292037ef9b
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

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