mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 21:55:17 -07:00
vim-patch:8.2.1265: crash with EXITFREE when split() fails
Problem: Crash with EXITFREE when split() fails.
Solution: Restore 'cpoptions'.
7d5e744162
This commit is contained in:
parent
9443d39941
commit
2d34ddb3c3
@ -9519,7 +9519,7 @@ static void f_split(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
tv_list_alloc_ret(rettv, kListLenMayKnow);
|
||||
|
||||
if (typeerr) {
|
||||
return;
|
||||
goto theend;
|
||||
}
|
||||
|
||||
regmatch_T regmatch = {
|
||||
@ -9563,6 +9563,7 @@ static void f_split(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
vim_regfree(regmatch.regprog);
|
||||
}
|
||||
|
||||
theend:
|
||||
p_cpo = save_cpo;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user