From: Bram Moolenaar Date: Wed, 19 Feb 2020 20:12:40 +0000 (+0100) Subject: patch 8.2.0284: Vim9: assignment test fails X-Git-Tag: v8.2.0284 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0d656c89df4cf5a7d712dfb264853b9ca7d586f;p=vim 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 index f97c50595..c09d556d2 100644 --- a/src/version.c +++ b/src/version.c @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 284, /**/ 283, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 7fe27642a..08cf0e635 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