0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

updated for version 7.4.008

Problem:    New regexp engine can't be interrupted.
Solution:   Check for CTRL-C pressed. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2013-08-25 17:01:42 +02:00
parent 74cd624fde
commit 41f1205fef
3 changed files with 10 additions and 2 deletions

View File

@@ -5089,6 +5089,12 @@ nfa_regmatch(prog, start, submatch, m)
return FALSE;
}
#endif
/* Some patterns may take a long time to match, especially when using
* recursive_regmatch(). Allow interrupting them with CTRL-C. */
fast_breakcheck();
if (got_int)
return FALSE;
nfa_match = FALSE;
/* Allocate memory for the lists of nodes. */