Patch 8.2.3883
Problem:    Crash when switching to other regexp engine fails.
Solution:   Check for regprog being NULL.
Files:      src/ex_cmds.c


*** ../vim-8.2.3882/src/ex_cmds.c       2021-11-29 20:39:06.674101624 +0000
--- src/ex_cmds.c       2021-12-24 16:44:54.603682728 +0000
***************
*** 4975,4980 ****
--- 4975,4982 ----
            // a match on this line?
            match = vim_regexec_multi(&regmatch, curwin, curbuf, lnum,
                                                       (colnr_T)0, NULL, NULL);
+           if (regmatch.regprog == NULL)
+               break;  // re-compiling regprog failed
            if ((type == 'g' && match) || (type == 'v' && !match))
            {
                ml_setmarked(lnum);
*** ../vim-8.2.3882/src/version.c       2021-12-24 12:02:38.638058816 +0000
--- src/version.c       2021-12-24 15:39:17.275991980 +0000
***************
*** 751,752 ****
--- 751,754 ----
  {   /* Add new patch number below this line */
+ /**/
+     3883,
  /**/

-- 
>From "know your smileys":
 :-| :-|   Deja' vu!

 /// Bram Moolenaar -- b...@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    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211224165702.43E611C0641%40moolenaar.net.

Raspunde prin e-mail lui