summaryrefslogtreecommitdiffstats
path: root/src/userfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-08 21:38:50 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-08 21:38:50 +0200
commitc967d57aa9a6bede0f50c6986dcddc1dc035a354 (patch)
tree7b4830d81fc898ceda58a5e5372eb8df97adadf7 /src/userfunc.c
parentf055d4502365f24de6c0f210a06e2c146a75dc4d (diff)
patch 8.2.3129: Vim9: imported uninitialized list does not get type checkedv8.2.3129
Problem: Vim9: imported uninitialized list does not get type checked. Solution: Get type from imported variable.
Diffstat (limited to 'src/userfunc.c')
-rw-r--r--src/userfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 4ab7cc18bc..4234681cd7 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -1512,7 +1512,7 @@ deref_func_name(
{
if (type != NULL && ht == get_script_local_ht())
{
- svar_T *sv = find_typval_in_script(&v->di_tv, TRUE);
+ svar_T *sv = find_typval_in_script(&v->di_tv);
if (sv != NULL)
*type = sv->sv_type;