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.
diff --git a/src/errors.h b/src/errors.h
index 2c4e031..44b2828 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -595,8 +595,8 @@
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[]
diff --git a/src/usercmd.c b/src/usercmd.c
index 41f8e04..bc0b870 100644
--- a/src/usercmd.c
+++ b/src/usercmd.c
@@ -1077,10 +1077,11 @@
// 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
{
diff --git a/src/version.c b/src/version.c
index 251f26f..1cddd15 100644
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3282,
+/**/
3281,
/**/
3280,