mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.1265: crash with EXITFREE when split() fails
Problem: Crash with EXITFREE when split() fails. Solution: Restore 'cpoptions'.
This commit is contained in:
@@ -7859,9 +7859,9 @@ f_split(typval_T *argvars, typval_T *rettv)
|
|||||||
pat = (char_u *)"[\\x01- ]\\+";
|
pat = (char_u *)"[\\x01- ]\\+";
|
||||||
|
|
||||||
if (rettv_list_alloc(rettv) == FAIL)
|
if (rettv_list_alloc(rettv) == FAIL)
|
||||||
return;
|
goto theend;
|
||||||
if (typeerr)
|
if (typeerr)
|
||||||
return;
|
goto theend;
|
||||||
|
|
||||||
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
|
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
|
||||||
if (regmatch.regprog != NULL)
|
if (regmatch.regprog != NULL)
|
||||||
@@ -7898,6 +7898,7 @@ f_split(typval_T *argvars, typval_T *rettv)
|
|||||||
vim_regfree(regmatch.regprog);
|
vim_regfree(regmatch.regprog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
theend:
|
||||||
p_cpo = save_cpo;
|
p_cpo = save_cpo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -754,6 +754,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 */
|
||||||
|
/**/
|
||||||
|
1265,
|
||||||
/**/
|
/**/
|
||||||
1264,
|
1264,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user