diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 8146d9d61e..bd3818d71e 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -5198,6 +5198,8 @@ nfa_regmatch(prog, start, submatch, m) || t->state->c == NFA_START_INVISIBLE_BEFORE_FIRST || t->state->c == NFA_START_INVISIBLE_BEFORE_NEG_FIRST) { + int in_use = m->norm.in_use; + /* Copy submatch info for the recursive call, so that * \1 can be matched. */ copy_sub_off(&m->norm, &t->subs.norm); @@ -5231,6 +5233,7 @@ nfa_regmatch(prog, start, submatch, m) add_here = TRUE; add_state = t->state->out1->out; } + m->norm.in_use = in_use; } else { diff --git a/src/version.c b/src/version.c index 4980ae5700..d8a6f3804e 100644 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1258, /**/ 1257, /**/