# HG changeset patch # User Bram Moolenaar # Date 1582143303 -3600 # Node ID 12a2df388bcab64dec4a6f921e1c8b11b4565a04 # Parent 6321a196075811c4e0d9fe91cc5395f284bc8874 patch 8.2.0284: Vim9: assignment test fails Commit: https://github.com/vim/vim/commit/c0d656c89df4cf5a7d712dfb264853b9ca7d586f Author: Bram Moolenaar Date: Wed Feb 19 21:12:40 2020 +0100 patch 8.2.0284: Vim9: assignment test fails Problem: Vim9: assignment test fails. Solution: Avoid duplicating "s:". diff --git a/src/version.c b/src/version.c --- 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 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3393,7 +3393,7 @@ compile_assignment(char_u *arg, exarg_T 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