1
0
forked from aniani/vim

patch 8.2.4688: new regexp engine does not give an error for "\%v"

Problem:    New regexp engine does not give an error for "\%v".
Solution:   Check for a value argument. (issue #10079)
This commit is contained in:
Bram Moolenaar
2022-04-04 18:32:32 +01:00
parent e8a4c0d91f
commit 91ff3d4f52
5 changed files with 26 additions and 3 deletions

View File

@@ -1649,7 +1649,8 @@ regatom(int *flagp)
{
if (cur && n)
{
semsg(_(e_regexp_number_after_dot_pos_search), no_Magic(c));
semsg(_(e_regexp_number_after_dot_pos_search_chr),
no_Magic(c));
rc_did_emsg = TRUE;
return NULL;
}