From 3e2534ed1a6557445747e6c1439ad26ec8eabfc4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 28 Oct 2020 17:55:31 +0100 Subject: [PATCH] patch 8.2.1918: Vim9: E1100 mentions :let Problem: Vim9: E1100 mentions :let. Solution: Mention "var". (closes #7207) --- src/errors.h | 4 ++-- src/version.c | 2 ++ src/vim9script.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/errors.h b/src/errors.h index 4d8456ffe0..1843f3d6fd 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 32c42a07de..a7508cae93 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 cb13f3c171..378035660d 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; } -- 2.47.3