Merge pull request #3760 from Shougo/vim-7.4.623

vim-patch:7.4.623
This commit is contained in:
Justin M. Keyes
2015-12-01 11:54:54 -05:00
2 changed files with 5 additions and 4 deletions

View File

@@ -1897,9 +1897,10 @@ static int nfa_regpiece(void)
return OK;
}
// The engine is very inefficient (uses too many states) when the maximum is
// much larger than the minimum. Bail out if we can use the other engine.
if ((nfa_re_flags & RE_AUTO) && maxval > minval + 200) {
// The engine is very inefficient (uses too many states) when the maximum
// is much larger than the minimum and when the maximum is large. Bail out
// if we can use the other engine.
if ((nfa_re_flags & RE_AUTO) && (maxval > minval + 200 || maxval > 500)) {
return FAIL;
}

View File

@@ -373,7 +373,7 @@ static int included_patches[] = {
// 626 NA
// 625 NA
// 624,
// 623,
623,
// 622 NA
// 621 NA
// 620,