From: Bram Moolenaar Date: Sat, 19 Mar 2022 11:31:38 +0000 (+0000) Subject: patch 8.2.4592: search continues after giving E1204 X-Git-Tag: v8.2.4592 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b10ff5c1b3581ed4990d196bed51b4a8f961e8a2;p=vim patch 8.2.4592: search continues after giving E1204 Problem: Search continues after giving E1204. Solution: Return failure after giving E1204. (closes #9972) --- diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index ed8efcfee..4d95f83f1 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -1653,8 +1653,11 @@ nfa_regatom(void) long_u tmp; if (cur) + { semsg(_(e_regexp_number_after_dot_pos_search), - no_Magic(c)); + no_Magic(c)); + return FAIL; + } tmp = n * 10 + (c - '0'); if (tmp < n) diff --git a/src/version.c b/src/version.c index 25b19f19a..c2e491429 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4592, /**/ 4591, /**/