mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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:
@@ -1654,7 +1654,7 @@ nfa_regatom(void)
|
||||
|
||||
if (cur)
|
||||
{
|
||||
semsg(_(e_regexp_number_after_dot_pos_search),
|
||||
semsg(_(e_regexp_number_after_dot_pos_search_chr),
|
||||
no_Magic(c));
|
||||
return FAIL;
|
||||
}
|
||||
@@ -1673,6 +1673,12 @@ nfa_regatom(void)
|
||||
{
|
||||
long_u limit = INT_MAX;
|
||||
|
||||
if (!cur && n == 0)
|
||||
{
|
||||
semsg(_(e_nfa_regexp_missing_value_in_chr),
|
||||
no_Magic(c));
|
||||
return FAIL;
|
||||
}
|
||||
if (c == 'l')
|
||||
{
|
||||
if (cur)
|
||||
|
Reference in New Issue
Block a user