Mercurial > vim
changeset 25491:b9419c9d3da6 v8.2.3282
patch 8.2.3282: Vim9: error about using -complete without -nargs is confusing
Commit: https://github.com/vim/vim/commit/41a3485dd638a09e4c463b1a1da231f4290454f2
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 4 16:09:24 2021 +0200
patch 8.2.3282: Vim9: error about using -complete without -nargs is confusing
Problem: Vim9: error about using -complete without -nargs is confusing.
Solution: Change the wording.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Aug 2021 16:15:04 +0200 |
parents | b5fc355d22f5 |
children | fe6fc460a6fc |
files | src/errors.h src/usercmd.c src/version.c |
diffstat | 3 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/errors.h +++ b/src/errors.h @@ -595,8 +595,8 @@ EXTERN char e_dict_required_for_argument INIT(= N_("E1206: Dictionary required for argument %d")); EXTERN char e_expression_without_effect_str[] INIT(= N_("E1207: Expression without an effect: %s")); -EXTERN char e_complete_used_without_nargs[] - INIT(= N_("E1208: -complete used without -nargs")); +EXTERN char e_complete_used_without_allowing_arguments[] + INIT(= N_("E1208: -complete used without allowing arguments")); EXTERN char e_invalid_value_for_line_number_str[] INIT(= N_("E1209: Invalid value for a line number: \"%s\"")); EXTERN char e_number_required_for_argument_nr[]
--- a/src/usercmd.c +++ b/src/usercmd.c @@ -1077,10 +1077,11 @@ ex_command(exarg_T *eap) // Some plugins rely on silently ignoring the mistake, only make this // an error in Vim9 script. if (in_vim9script()) - emsg(_(e_complete_used_without_nargs)); + emsg(_(e_complete_used_without_allowing_arguments)); else give_warning_with_source( - (char_u *)_(e_complete_used_without_nargs), TRUE, TRUE); + (char_u *)_(e_complete_used_without_allowing_arguments), + TRUE, TRUE); } else {