mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.3883: crash when switching to other regexp engine fails (#16773)
Problem: Crash when switching to other regexp engine fails.
Solution: Check for regprog being NULL.
5937c7505f
This commit is contained in:
parent
96230d6c69
commit
06985fa595
@ -4584,6 +4584,9 @@ void ex_global(exarg_T *eap)
|
||||
// a match on this line?
|
||||
match = vim_regexec_multi(®match, 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);
|
||||
ndone++;
|
||||
|
Loading…
Reference in New Issue
Block a user