Patch 8.2.2966
Problem: ml_get errors after recovering a file. (Yegappan Lakshmanan)
Solution: Fix the cursor position after deleting lines.
Files: src/memline.c
*** ../vim-8.2.2965/src/memline.c 2021-06-02 13:28:11.431120460 +0200
--- src/memline.c 2021-06-09 12:23:02.629626753 +0200
***************
*** 1696,1701 ****
--- 1696,1702 ----
&& !(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)
*** ../vim-8.2.2965/src/version.c 2021-06-08 22:01:48.754571742 +0200
--- src/version.c 2021-06-09 12:30:44.276606268 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2966,
/**/
--
./configure
Checking whether build environment is sane ...
build environment is grinning and holding a spatula. Guess not.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///