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.
diff --git a/src/memline.c b/src/memline.c
index a0b6429..58582c9 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -1696,6 +1696,7 @@
&& !(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)
diff --git a/src/version.c b/src/version.c
index aee9dcf..f57d692 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2966,
+/**/
2965,
/**/
2964,