summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-28 17:55:31 +0100
committerBram Moolenaar <Bram@vim.org>2020-10-28 17:55:31 +0100
commit3e2534ed1a6557445747e6c1439ad26ec8eabfc4 (patch)
tree5dd1426536ed0879fd1c37b958b2d945f477cb24 /src
parent159563b439d1b2a61d1003430b6c9f2a8509b5c5 (diff)
downloadvim-git-3e2534ed1a6557445747e6c1439ad26ec8eabfc4.tar.gz
patch 8.2.1918: Vim9: E1100 mentions :letv8.2.1918
Problem: Vim9: E1100 mentions :let. Solution: Mention "var". (closes #7207)
Diffstat (limited to 'src')
-rw-r--r--src/errors.h4
-rw-r--r--src/version.c2
-rw-r--r--src/vim9script.c2
3 files changed, 5 insertions, 3 deletions
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
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1918,
+/**/
1917,
/**/
1916,
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;
}