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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user