mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +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:
@@ -1193,7 +1193,7 @@ void ex_match(exarg_T *eap)
|
||||
if (!eap->skip) {
|
||||
if (*end != NUL && !ends_excmd(*skipwhite((char *)end + 1))) {
|
||||
xfree(g);
|
||||
eap->errmsg = e_trailing;
|
||||
eap->errmsg = ex_errmsg(e_trailing_arg, (const char *)end);
|
||||
return;
|
||||
}
|
||||
if (*end != *p) {
|
||||
|
Reference in New Issue
Block a user