]> granicus.if.org Git - vim/commitdiff
patch 8.2.3282: Vim9: error about using -complete without -nargs is confusing v8.2.3282
authorBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2021 14:09:24 +0000 (16:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2021 14:09:24 +0000 (16:09 +0200)
Problem:    Vim9: error about using -complete without -nargs is confusing.
Solution:   Change the wording.

src/errors.h
src/usercmd.c
src/version.c

index 2c4e031c6890057b0582e356ecb9eda2588aa5dc..44b2828f6a278651fbcf7b2809e0b5dabd6332b8 100644 (file)
@@ -595,8 +595,8 @@ EXTERN char e_dict_required_for_argument_nr[]
        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[]
index 41f8e0476888e917501b457a1d37aec9cf36181c..bc0b870322600492c876e78345953f56eac53d98 100644 (file)
@@ -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
     {
index 251f26f111a9ea9da6c40a4af7686e0fc4395c5d..1cddd15cd4c66d5184882afcb503a5e36e684ce9 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3282,
 /**/
     3281,
 /**/