diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-23 16:37:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-23 16:37:03 +0200 |
commit | 8930caaa1a283092aca81fdbc3fcf15c7eadb197 (patch) | |
tree | b88ad868a29b0c26a4224cce4c69f35b9655dfec /src/buffer.c | |
parent | 8d5f6af5e5a5edfd3fa95f33540c204f4e74331e (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.c | 2 |
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 |