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 ed8efcf..4d95f83 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -1653,8 +1653,11 @@
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 25b19f1..c2e4914 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4592,
+/**/
4591,
/**/
4590,