mirror of
https://github.com/vim/vim.git
synced 2025-10-29 09:37:35 -04:00
patch 8.2.1280: Ex command error cannot contain an argument
Problem: Ex command error cannot contain an argument.
Solution: Add ex_errmsg() and translate earlier. Use e_trailing_arg where
possible.
This commit is contained in:
@@ -1329,7 +1329,7 @@ ex_match(exarg_T *eap)
|
||||
if (*end != NUL && !ends_excmd2(end, skipwhite(end + 1)))
|
||||
{
|
||||
vim_free(g);
|
||||
eap->errmsg = e_trailing;
|
||||
eap->errmsg = ex_errmsg(e_trailing_arg, end);
|
||||
return;
|
||||
}
|
||||
if (*end != *p)
|
||||
|
||||
Reference in New Issue
Block a user