mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
1df8a34a7b
commit
292037ef9b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user