1
0
forked from aniani/vim

patch 8.2.1918: Vim9: E1100 mentions :let

Problem:    Vim9: E1100 mentions :let.
Solution:   Mention "var". (closes #7207)
This commit is contained in:
Bram Moolenaar
2020-10-28 17:55:31 +01:00
parent 159563b439
commit 3e2534ed1a
3 changed files with 5 additions and 3 deletions

View File

@@ -27,8 +27,8 @@ EXTERN char e_assert_fails_second_arg[]
INIT(= N_("E856: \"assert_fails()\" second argument must be a string or a list with one or two strings"));
EXTERN char e_cannot_index_special_variable[]
INIT(= N_("E909: Cannot index a special variable"));
EXTERN char e_missing_let_str[]
INIT(= N_("E1100: Missing :let: %s"));
EXTERN char e_missing_var_str[]
INIT(= N_("E1100: Missing :var: %s"));
EXTERN char e_variable_not_found_str[]
INIT(= N_("E1001: Variable not found: %s"));
EXTERN char e_syntax_error_at_str[]

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1918,
/**/
1917,
/**/

View File

@@ -70,7 +70,7 @@ not_in_vim9(exarg_T *eap)
case CMD_insert:
case CMD_t:
case CMD_xit:
semsg(_(e_missing_let_str), eap->cmd);
semsg(_(e_missing_var_str), eap->cmd);
return FAIL;
default: break;
}