]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.2159: Vim9: when declaring a list it is not allocated yet v8.2.2159
authorBram Moolenaar <Bram@vim.org>
Fri, 18 Dec 2020 16:23:14 +0000 (17:23 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 18 Dec 2020 16:23:14 +0000 (17:23 +0100)
commit3beaf9cd8efa3ba83e07187215004d140b89d529
tree193f21162a9cb4dc605cd16b1e8ab639d1d60520
parent6e562fcc07c71ad1437c89c3d3cc423efb691f0a
patch 8.2.2159: Vim9: when declaring a list it is not allocated yet

Problem:    Vim9: when declaring a list it is not allocated yet, causing a
            following extend() to fail.
Solution:   When fetching a variable value for a list or dict that is null
            allocate the list or dict, so it can be used. (closes #7491)
src/testdir/test_vim9_assign.vim
src/version.c
src/vim9execute.c