0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.1.0973: pattern with syntax error gives threee error messages

Problem:    Pattern with syntax error gives threee error messages. (Kuang-che
            Wu)
Solution:   Remove outdated internal error.  Don't fall back to other engine
            after an error.
This commit is contained in:
Bram Moolenaar
2019-02-22 17:29:43 +01:00
parent 72e83c1ae5
commit cd62512c55
4 changed files with 13 additions and 6 deletions

View File

@@ -7252,12 +7252,7 @@ nfa_regcomp(char_u *expr, int re_flags)
* (and count its size). */
postfix = re2post();
if (postfix == NULL)
{
/* TODO: only give this error for debugging? */
if (post_ptr >= post_end)
siemsg("Internal error: estimated max number of states insufficient: %ld", post_end - post_start);
goto fail; /* Cascaded (syntax?) error */
}
/*
* In order to build the NFA, we parse the input regexp twice: