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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user