changeset 19453:12a2df388bca v8.2.0284

patch 8.2.0284: Vim9: assignment test fails Commit: https://github.com/vim/vim/commit/c0d656c89df4cf5a7d712dfb264853b9ca7d586f Author: Bram Moolenaar <Bram@vim.org> 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:".
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Feb 2020 21:15:03 +0100
parents 6321a1960758
children f83a66aaea44
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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