]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.0481: in :def function all closures in loop get the same variables v9.0.0481
authorBram Moolenaar <Bram@vim.org>
Fri, 16 Sep 2022 18:04:24 +0000 (19:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 16 Sep 2022 18:04:24 +0000 (19:04 +0100)
commit8fa745e7be3a791ac25f93ef0227bbc48ade8a37
tree2784f5de78824527acc5d31f3eb96fd4264ac989
parentabd58d8aee7fec2b9e07c829eb925b0a1f7118db
patch 9.0.0481: in :def function all closures in loop get the same variables

Problem:    In a :def function all closures in a loop get the same variables.
Solution:   Use a separate list of variables for LOADOUTER and STOREOUTER.
            Not copied at end of loop yet.
13 files changed:
src/proto/userfunc.pro
src/proto/vim9cmds.pro
src/proto/vim9execute.pro
src/proto/vim9instr.pro
src/structs.h
src/userfunc.c
src/version.c
src/vim9.h
src/vim9cmds.c
src/vim9compile.c
src/vim9execute.c
src/vim9expr.c
src/vim9instr.c