neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 5eb8119dce65909d1ecd82e703bdcde47547c2f7
parent ad7064bd83aef7caadb51c988c0dcb9054624fcf
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat,  6 Aug 2022 19:18:43 +0800

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
Diffstat:
Msrc/nvim/usercmd.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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);