mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:8.2.3282: Vim9: error about using -complete without -nargs is confusing (#19656)
Problem: Vim9: error about using -complete without -nargs is confusing.
Solution: Change the wording.
41a3485dd6
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
|
|
||||||
garray_T ucmds = { 0, 0, sizeof(ucmd_T), 4, NULL };
|
garray_T ucmds = { 0, 0, sizeof(ucmd_T), 4, NULL };
|
||||||
|
|
||||||
static char e_complete_used_without_nargs[]
|
static char e_complete_used_without_allowing_arguments[]
|
||||||
= N_("E1208: -complete used without -nargs");
|
= N_("E1208: -complete used without allowing arguments");
|
||||||
static char e_no_such_user_defined_command_str[]
|
static char e_no_such_user_defined_command_str[]
|
||||||
= N_("E184: No such user-defined command: %s");
|
= N_("E184: No such user-defined command: %s");
|
||||||
static char e_no_such_user_defined_command_in_current_buffer_str[]
|
static char e_no_such_user_defined_command_in_current_buffer_str[]
|
||||||
@@ -955,7 +955,7 @@ void ex_command(exarg_T *eap)
|
|||||||
} else if (name_len <= 4 && STRNCMP(name, "Next", name_len) == 0) {
|
} else if (name_len <= 4 && STRNCMP(name, "Next", name_len) == 0) {
|
||||||
emsg(_("E841: Reserved name, cannot be used for user defined command"));
|
emsg(_("E841: Reserved name, cannot be used for user defined command"));
|
||||||
} else if (compl > 0 && (argt & EX_EXTRA) == 0) {
|
} else if (compl > 0 && (argt & EX_EXTRA) == 0) {
|
||||||
emsg(_(e_complete_used_without_nargs));
|
emsg(_(e_complete_used_without_allowing_arguments));
|
||||||
} else {
|
} else {
|
||||||
uc_add_command(name, name_len, p, argt, def, flags, compl, compl_arg, LUA_NOREF, LUA_NOREF,
|
uc_add_command(name, name_len, p, argt, def, flags, compl, compl_arg, LUA_NOREF, LUA_NOREF,
|
||||||
addr_type_arg, LUA_NOREF, eap->forceit);
|
addr_type_arg, LUA_NOREF, eap->forceit);
|
||||||
|
Reference in New Issue
Block a user