mirror of
https://github.com/neovim/neovim.git
synced 2025-11-28 21:20:45 +00:00
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 vim/vim#10079)
91ff3d4f52
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -2117,7 +2117,7 @@ static char_u *regatom(int *flagp)
|
||||
break;
|
||||
} else if (c == 'l' || c == 'c' || c == 'v') {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user