1
0
forked from aniani/vim

patch 7.4.1967

Problem:    Falling back from NFA to old regexp engine does not work properly.
            (fritzophrenic)
Solution:   Do not restore nfa_match. (Christian Brabandt, closes #867)
This commit is contained in:
Bram Moolenaar
2016-06-28 22:39:16 +02:00
parent bcf7772a23
commit 6747fabc73
4 changed files with 12 additions and 3 deletions

View File

@@ -5209,9 +5209,12 @@ recursive_regmatch(
if (REG_MULTI)
regline = reg_getline(reglnum);
reginput = regline + save_reginput_col;
nfa_match = save_nfa_match;
if (result != NFA_TOO_EXPENSIVE)
{
nfa_match = save_nfa_match;
nfa_listid = save_nfa_listid;
}
nfa_endp = save_nfa_endp;
nfa_listid = save_nfa_listid;
#ifdef ENABLE_LOG
log_fd = fopen(NFA_REGEXP_RUN_LOG, "a");