# HG changeset patch # User Bram Moolenaar # Date 1647690303 -3600 # Node ID 3ccd55c472b8c11bc64f8faeb7900b0831e98b38 # Parent 0ff3b213d70fedc1e46b0ad1698f13d1f53700e9 patch 8.2.4592: search continues after giving E1204 Commit: https://github.com/vim/vim/commit/b10ff5c1b3581ed4990d196bed51b4a8f961e8a2 Author: Bram Moolenaar Date: Sat Mar 19 11:31:38 2022 +0000 patch 8.2.4592: search continues after giving E1204 Problem: Search continues after giving E1204. Solution: Return failure after giving E1204. (closes https://github.com/vim/vim/issues/9972) diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4592, +/**/ 4591, /**/ 4590,