diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-07 13:47:46 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-07 14:38:57 +0800 |
commit | d0686540f56154e269e11eb0cc6cd3eb759f2b77 (patch) | |
tree | fc84d19f4d10405415740835010eb79eb7e03c59 /src/nvim/buffer.c | |
parent | 3b7fc5f793e9e9926237f2d6e744b4f6d4ccf12f (diff) | |
download | rneovim-d0686540f56154e269e11eb0cc6cd3eb759f2b77.tar.gz rneovim-d0686540f56154e269e11eb0cc6cd3eb759f2b77.tar.bz2 rneovim-d0686540f56154e269e11eb0cc6cd3eb759f2b77.zip |
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
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |