Patch 8.2.4399
Problem:    Crash after ml_get error.
Solution:   When returning "???" flush the line and set ml_line_lnum.
Files:      src/memline.c


*** ../vim-8.2.4398/src/memline.c       2022-01-29 15:19:19.546172430 +0000
--- src/memline.c       2022-02-16 16:30:21.514068737 +0000
***************
*** 2619,2627 ****
--- 2619,2630 ----
            siemsg(_(e_ml_get_invalid_lnum_nr), lnum);
            --recursive;
        }
+       ml_flush_line(buf);
+       buf->b_ml.ml_flags &= ~ML_LINE_DIRTY;
  errorret:
        STRCPY(questions, "???");
        buf->b_ml.ml_line_len = 4;
+       buf->b_ml.ml_line_lnum = lnum;
        return questions;
      }
      if (lnum <= 0)                    // pretend line 0 is line 1
*** ../vim-8.2.4398/src/version.c       2022-02-16 12:44:26.133908856 +0000
--- src/version.c       2022-02-16 14:47:23.961874134 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4399,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
50. The last girl you picked up was only a jpeg.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220216163601.EFE051C0FE0%40moolenaar.net.

Raspunde prin e-mail lui