diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-06 19:18:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 19:18:43 +0800 |
commit | 5eb8119dce65909d1ecd82e703bdcde47547c2f7 (patch) | |
tree | 1bd0785d0ea8c5e2a3ba6667de01e8881c4f6795 | |
parent | ad7064bd83aef7caadb51c988c0dcb9054624fcf (diff) | |
download | rneovim-5eb8119dce65909d1ecd82e703bdcde47547c2f7.tar.gz rneovim-5eb8119dce65909d1ecd82e703bdcde47547c2f7.tar.bz2 rneovim-5eb8119dce65909d1ecd82e703bdcde47547c2f7.zip |
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.
https://github.com/vim/vim/commit/41a3485dd638a09e4c463b1a1da231f4290454f2
-rw-r--r-- | src/nvim/usercmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/usercmd.c b/src/nvim/usercmd.c index 9561f9baff..5e17ce1984 100644 --- a/src/nvim/usercmd.c +++ b/src/nvim/usercmd.c @@ -25,8 +25,8 @@ garray_T ucmds = { 0, 0, sizeof(ucmd_T), 4, NULL }; -static char e_complete_used_without_nargs[] - = N_("E1208: -complete used without -nargs"); +static char e_complete_used_without_allowing_arguments[] + = N_("E1208: -complete used without allowing arguments"); static char e_no_such_user_defined_command_str[] = N_("E184: No such user-defined command: %s"); 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) { emsg(_("E841: Reserved name, cannot be used for user defined command")); } else if (compl > 0 && (argt & EX_EXTRA) == 0) { - emsg(_(e_complete_used_without_nargs)); + emsg(_(e_complete_used_without_allowing_arguments)); } else { uc_add_command(name, name_len, p, argt, def, flags, compl, compl_arg, LUA_NOREF, LUA_NOREF, addr_type_arg, LUA_NOREF, eap->forceit); |