diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-18 22:15:04 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-18 22:15:04 +0100 |
commit | 108cf0153c5770e343aec9e2390acdaa4a0b149a (patch) | |
tree | def8f451bc49e4e5d7b98e5cc7e33dd52aaffb29 /src/vim9script.c | |
parent | 4b3e1964d85a25ac7b2202094d1abf27ab93cc23 (diff) | |
download | vim-git-108cf0153c5770e343aec9e2390acdaa4a0b149a.tar.gz |
patch 8.2.2621: typval2type() cannot handle recursive structuresv8.2.2621
Problem: typval2type() cannot handle recursive structures.
Solution: Use copyID. (closes #7979)
Diffstat (limited to 'src/vim9script.c')
-rw-r--r-- | src/vim9script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9script.c b/src/vim9script.c index 309d4bdaf..9366e7632 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -750,7 +750,7 @@ update_vim9_script_var( if (sv != NULL) { if (*type == NULL) - *type = typval2type(tv, &si->sn_type_list); + *type = typval2type(tv, get_copyID(), &si->sn_type_list); sv->sv_type = *type; } |