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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user