changeset 28135:3ccd55c472b8 v8.2.4592

patch 8.2.4592: search continues after giving E1204 Commit: https://github.com/vim/vim/commit/b10ff5c1b3581ed4990d196bed51b4a8f961e8a2 Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Mar 2022 12:45:03 +0100
parents 0ff3b213d70f
children 0be74bb8a072
files src/regexp_nfa.c src/version.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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,