0
0
mirror of https://github.com/vim/vim.git synced 2025-10-10 06:24:10 -04:00

patch 8.2.4592: search continues after giving E1204

Problem:    Search continues after giving E1204.
Solution:   Return failure after giving E1204. (closes #9972)
This commit is contained in:
Bram Moolenaar
2022-03-19 11:31:38 +00:00
parent e7a74d5375
commit b10ff5c1b3
2 changed files with 6 additions and 1 deletions

View File

@@ -1653,8 +1653,11 @@ nfa_regatom(void)
long_u tmp; long_u tmp;
if (cur) if (cur)
{
semsg(_(e_regexp_number_after_dot_pos_search), semsg(_(e_regexp_number_after_dot_pos_search),
no_Magic(c)); no_Magic(c));
return FAIL;
}
tmp = n * 10 + (c - '0'); tmp = n * 10 + (c - '0');
if (tmp < n) if (tmp < n)

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4592,
/**/ /**/
4591, 4591,
/**/ /**/