From: Bram Moolenaar Date: Wed, 28 Oct 2020 16:55:31 +0000 (+0100) Subject: patch 8.2.1918: Vim9: E1100 mentions :let X-Git-Tag: v8.2.1918 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e2534ed1a6557445747e6c1439ad26ec8eabfc4;p=vim patch 8.2.1918: Vim9: E1100 mentions :let Problem: Vim9: E1100 mentions :let. Solution: Mention "var". (closes #7207) --- diff --git a/src/errors.h b/src/errors.h index 4d8456ffe..1843f3d6f 100644 --- a/src/errors.h +++ b/src/errors.h @@ -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[] diff --git a/src/version.c b/src/version.c index 32c42a07d..a7508cae9 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1918, /**/ 1917, /**/ diff --git a/src/vim9script.c b/src/vim9script.c index cb13f3c17..378035660 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -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; }