]> granicus.if.org Git - vim/commitdiff
patch 8.2.0284: Vim9: assignment test fails v8.2.0284
authorBram Moolenaar <Bram@vim.org>
Wed, 19 Feb 2020 20:12:40 +0000 (21:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 19 Feb 2020 20:12:40 +0000 (21:12 +0100)
Problem:    Vim9: assignment test fails.
Solution:   Avoid duplicating "s:".

src/version.c
src/vim9compile.c

index f97c50595b73921fbc2444ccbbc05af071975255..c09d556d28eff07a58ade74964dc1a31c4b4b334 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    284,
 /**/
     283,
 /**/
index 7fe27642af7a7f4c3f2a15d6f949f2b3341215d9..08cf0e635803b3a262ff29290e2fe4e5383910f8 100644 (file)
@@ -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