Skip to content

Commit facd368

Browse files
committed
updated for version 7.4.029
Problem: An error in a pattern is reported twice. Solution: Remove the retry with the backtracking engine, it won't work.
1 parent 98735fc commit facd368

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/regexp.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8016,12 +8016,11 @@ vim_regcomp(expr_arg, re_flags)
80168016
}
80178017
#endif
80188018
/*
8019-
* If NFA engine failed, then revert to the backtracking engine.
8020-
* Except when there was a syntax error, which was properly handled by
8021-
* NFA engine.
8022-
*/
8019+
* If the NFA engine failed, the backtracking engine won't work either.
8020+
*
80238021
if (regexp_engine == AUTOMATIC_ENGINE)
80248022
prog = bt_regengine.regcomp(expr, re_flags);
8023+
*/
80258024
}
80268025

80278026
return prog;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
29,
741743
/**/
742744
28,
743745
/**/

0 commit comments

Comments
 (0)