mirror of
https://github.com/neovim/neovim.git
synced 2025-11-28 21:20:45 +00:00
vim-patch:8.2.4978: no error if engine selection atom is not at the start
Problem: No error if engine selection atom is not at the start.
Solution: Give an error. (Christian Brabandt, closes vim/vim#10439)
360da40b47
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -1971,6 +1971,11 @@ static char_u *regatom(int *flagp)
|
||||
break;
|
||||
|
||||
case '#':
|
||||
if (regparse[0] == '=' && regparse[1] >= 48 && regparse[1] <= 50) {
|
||||
// misplaced \%#=1
|
||||
semsg(_(e_atom_engine_must_be_at_start_of_pattern), regparse[1]);
|
||||
return FAIL;
|
||||
}
|
||||
ret = regnode(CURSOR);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user