0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -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

@@ -1188,7 +1188,7 @@ do_bufdel(
if (addr_count == 2)
{
if (*arg) // both range and argument is not allowed
return _(e_trailing);
return ex_errmsg(e_trailing_arg, arg);
bnr = start_bnr;
}
else // addr_count == 1