|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.008
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.008
|
|
|
22c937 |
Problem: New regexp engine can't be interrupted.
|
|
|
22c937 |
Solution: Check for CTRL-C pressed. (Yasuhiro Matsumoto)
|
|
|
22c937 |
Files: src/regexp_nfa.c, src/regexp.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.007/src/regexp_nfa.c 2013-08-14 14:18:37.000000000 +0200
|
|
|
22c937 |
--- src/regexp_nfa.c 2013-08-25 16:55:56.000000000 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 5089,5094 ****
|
|
|
22c937 |
--- 5089,5100 ----
|
|
|
22c937 |
return FALSE;
|
|
|
22c937 |
}
|
|
|
22c937 |
#endif
|
|
|
22c937 |
+ /* Some patterns may take a long time to match, especially when using
|
|
|
22c937 |
+ * recursive_regmatch(). Allow interrupting them with CTRL-C. */
|
|
|
22c937 |
+ fast_breakcheck();
|
|
|
22c937 |
+ if (got_int)
|
|
|
22c937 |
+ return FALSE;
|
|
|
22c937 |
+
|
|
|
22c937 |
nfa_match = FALSE;
|
|
|
22c937 |
|
|
|
22c937 |
/* Allocate memory for the lists of nodes. */
|
|
|
22c937 |
*** ../vim-7.4.007/src/regexp.c 2013-08-01 18:31:30.000000000 +0200
|
|
|
22c937 |
--- src/regexp.c 2013-08-25 16:57:35.000000000 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 4311,4318 ****
|
|
|
22c937 |
*/
|
|
|
22c937 |
for (;;)
|
|
|
22c937 |
{
|
|
|
22c937 |
! /* Some patterns may cause a long time to match, even though they are not
|
|
|
22c937 |
! * illegal. E.g., "\([a-z]\+\)\+Q". Allow breaking them with CTRL-C. */
|
|
|
22c937 |
fast_breakcheck();
|
|
|
22c937 |
|
|
|
22c937 |
#ifdef DEBUG
|
|
|
22c937 |
--- 4311,4318 ----
|
|
|
22c937 |
*/
|
|
|
22c937 |
for (;;)
|
|
|
22c937 |
{
|
|
|
22c937 |
! /* Some patterns may take a long time to match, e.g., "\([a-z]\+\)\+Q".
|
|
|
22c937 |
! * Allow interrupting them with CTRL-C. */
|
|
|
22c937 |
fast_breakcheck();
|
|
|
22c937 |
|
|
|
22c937 |
#ifdef DEBUG
|
|
|
22c937 |
*** ../vim-7.4.007/src/version.c 2013-08-22 14:14:23.000000000 +0200
|
|
|
22c937 |
--- src/version.c 2013-08-25 16:57:51.000000000 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 729,730 ****
|
|
|
22c937 |
--- 729,732 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 8,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
hundred-and-one symptoms of being an internet addict:
|
|
|
22c937 |
124. You begin conversations with, "Who is your internet service provider?"
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|