From d0686540f56154e269e11eb0cc6cd3eb759f2b77 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 7 Aug 2022 13:47:46 +0800 Subject: vim-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. https://github.com/vim/vim/commit/8930caaa1a283092aca81fdbc3fcf15c7eadb197 Remove duplicate test file 062_tab_pages_spec.lua --- src/nvim/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index b5e100edcb..f23a1caf8b 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -969,7 +969,7 @@ char *do_bufdel(int command, char *arg, int addr_count, int start_bnr, int end_b } else { 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 -- cgit