mirror of
https://github.com/neovim/neovim.git
synced 2026-07-30 20:38:03 +00:00
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.
8930caaa1a
Remove duplicate test file 062_tab_pages_spec.lua
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user