commit 465f8ff8cbd3f9b73c1de8823505ee6a804b2bf1
parent b2819eec26c6e18fe41b103efad641fc2f227450
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat, 19 Mar 2022 19:37:08 +0800
vim-patch:8.2.4592: search continues after giving E1204
Problem: Search continues after giving E1204.
Solution: Return failure after giving E1204. (closes vim/vim#9972)
https://github.com/vim/vim/commit/b10ff5c1b3581ed4990d196bed51b4a8f961e8a2
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c
@@ -1651,6 +1651,7 @@ static int nfa_regatom(void)
while (ascii_isdigit(c)) {
if (cur) {
semsg(_(e_regexp_number_after_dot_pos_search), no_Magic(c));
+ return FAIL;
}
if (n > (INT32_MAX - (c - '0')) / 10) {
// overflow.