diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-19 21:12:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-19 21:12:40 +0100 |
commit | c0d656c89df4cf5a7d712dfb264853b9ca7d586f (patch) | |
tree | f5c37e58143ef4c7afc9b6ef426fc732617b857e /src | |
parent | fd1823e0b783c31a5022c7a4d31c34d84ff0a744 (diff) | |
download | vim-git-c0d656c89df4cf5a7d712dfb264853b9ca7d586f.tar.gz |
patch 8.2.0284: Vim9: assignment test failsv8.2.0284
Problem: Vim9: assignment test fails.
Solution: Avoid duplicating "s:".
Diffstat (limited to 'src')
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9compile.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index f97c50595..c09d556d2 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 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 |