]> granicus.if.org Git - vim/commit
patch 9.0.0502: a closure in a nested loop in a :def function does not work v9.0.0502
authorBram Moolenaar <Bram@vim.org>
Mon, 19 Sep 2022 14:54:34 +0000 (15:54 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 19 Sep 2022 14:54:34 +0000 (15:54 +0100)
commitcc34181f9994d64f8c8fa2f5845eaf0cc963067f
tree2909cd6f0d4d5f7e20b7daa76855c25fdef5dcb9
parent18ee0feb5dfbe51993dc715d24cf419ac92ebf92
patch 9.0.0502: a closure in a nested loop in a :def function does not work

Problem:    A closure in a nested loop in a :def function does not work.
Solution:   Use an array of loopvars, one per loop level.
15 files changed:
src/errors.h
src/eval.c
src/proto/userfunc.pro
src/proto/vim9cmds.pro
src/proto/vim9execute.pro
src/proto/vim9instr.pro
src/structs.h
src/testdir/test_vim9_disassemble.vim
src/testdir/test_vim9_script.vim
src/userfunc.c
src/version.c
src/vim9.h
src/vim9cmds.c
src/vim9execute.c
src/vim9instr.c