summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-19 21:12:40 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-19 21:12:40 +0100
commitc0d656c89df4cf5a7d712dfb264853b9ca7d586f (patch)
treef5c37e58143ef4c7afc9b6ef426fc732617b857e
parentfd1823e0b783c31a5022c7a4d31c34d84ff0a744 (diff)
patch 8.2.0284: Vim9: assignment test failsv8.2.0284
Problem: Vim9: assignment test fails. Solution: Avoid duplicating "s:".
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index f97c50595b..c09d556d28 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 284,
+/**/
283,
/**/
282,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 7fe27642af..08cf0e6358 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -3393,7 +3393,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
generate_LOAD(cctx, ISN_LOADG, 0, name + 2, type);
break;
case dest_script:
- compile_load_scriptvar(cctx, name);
+ compile_load_scriptvar(cctx, name + (name[1] == ':' ? 2 : 0));
break;
case dest_env:
// Include $ in the name here