forked from aniani/vim
patch 8.2.3883: crash when switching to other regexp engine fails
Problem: Crash when switching to other regexp engine fails. Solution: Check for regprog being NULL.
This commit is contained in:
@@ -4975,6 +4975,8 @@ ex_global(exarg_T *eap)
|
|||||||
// a match on this line?
|
// a match on this line?
|
||||||
match = vim_regexec_multi(®match, curwin, curbuf, lnum,
|
match = vim_regexec_multi(®match, curwin, curbuf, lnum,
|
||||||
(colnr_T)0, NULL, NULL);
|
(colnr_T)0, NULL, NULL);
|
||||||
|
if (regmatch.regprog == NULL)
|
||||||
|
break; // re-compiling regprog failed
|
||||||
if ((type == 'g' && match) || (type == 'v' && !match))
|
if ((type == 'g' && match) || (type == 'v' && !match))
|
||||||
{
|
{
|
||||||
ml_setmarked(lnum);
|
ml_setmarked(lnum);
|
||||||
|
@@ -749,6 +749,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3883,
|
||||||
/**/
|
/**/
|
||||||
3882,
|
3882,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user