0
0
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:
Bram Moolenaar
2020-07-23 16:37:03 +02:00
parent 8d5f6af5e5
commit 8930caaa1a
7 changed files with 79 additions and 61 deletions

View File

@@ -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)