diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-02-28 12:18:55 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-01 01:56:17 +0100 |
commit | e116b0f61f87a79fd93beb32c337f5bd9e2d3ab9 (patch) | |
tree | 726356b432c8fb719cc79792087ecf066dda9917 /src/nvim/regexp_nfa.c | |
parent | ff98f61601d61dcfd902655e70bba07fb768ce01 (diff) | |
download | rneovim-e116b0f61f87a79fd93beb32c337f5bd9e2d3ab9.tar.gz rneovim-e116b0f61f87a79fd93beb32c337f5bd9e2d3ab9.tar.bz2 rneovim-e116b0f61f87a79fd93beb32c337f5bd9e2d3ab9.zip |
vim-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.
https://github.com/vim/vim/commit/cd62512c5595fa1f7a7f2c6ec1a90ea6bde3ad50
Diffstat (limited to 'src/nvim/regexp_nfa.c')
-rw-r--r-- | src/nvim/regexp_nfa.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index d1369e4532..95030974d8 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -6476,16 +6476,10 @@ static regprog_T *nfa_regcomp(char_u *expr, int re_flags) nfa_regcomp_start(expr, re_flags); - /* Build postfix form of the regexp. Needed to build the NFA - * (and count its size). */ + // Build postfix form of the regexp. Needed to build the NFA + // (and count its size). postfix = re2post(); if (postfix == NULL) { - // TODO(vim): only give this error for debugging? - if (post_ptr >= post_end) { - IEMSGN("Internal error: estimated max number " - "of states insufficient: %" PRId64, - post_end - post_start); - } goto fail; // Cascaded (syntax?) error } |