0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2621: typval2type() cannot handle recursive structures

Problem:    typval2type() cannot handle recursive structures.
Solution:   Use copyID. (closes #7979)
This commit is contained in:
Bram Moolenaar
2021-03-18 22:15:04 +01:00
parent 4b3e1964d8
commit 108cf0153c
6 changed files with 33 additions and 16 deletions

View File

@@ -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;
}