]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.3216: Vim9: crash when using variable in a loop at script level v8.2.3216
authorBram Moolenaar <Bram@vim.org>
Sun, 25 Jul 2021 12:13:53 +0000 (14:13 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 25 Jul 2021 12:13:53 +0000 (14:13 +0200)
commit2eb6fc3b52148f961e804ec2be361d531ff770d8
tree860366c5e83de91ee2531177158a60dcf7c13e3f
parent5bca906b307728fa74a112914dc55b424d512d39
patch 8.2.3216: Vim9: crash when using variable in a loop at script level

Problem:    Vim9: crash when using variable in a loop at script level.
Solution:   Do not clear the variable if a function was defined.
            Do not create a new entry in sn_var_vals every time.
            (closes #8628)
src/eval.c
src/evalvars.c
src/ex_eval.c
src/structs.h
src/testdir/test_vim9_script.vim
src/userfunc.c
src/version.c
src/vim9script.c