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:
@@ -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[]
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1918,
|
||||
/**/
|
||||
1917,
|
||||
/**/
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user