summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-23 16:37:03 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-23 16:37:03 +0200
commit8930caaa1a283092aca81fdbc3fcf15c7eadb197 (patch)
treeb88ad868a29b0c26a4224cce4c69f35b9655dfec /src/buffer.c
parent8d5f6af5e5a5edfd3fa95f33540c204f4e74331e (diff)
patch 8.2.1280: Ex command error cannot contain an argumentv8.2.1280
Problem: Ex command error cannot contain an argument. Solution: Add ex_errmsg() and translate earlier. Use e_trailing_arg where possible.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 54afb13b08..8a791d4c38 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -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