summaryrefslogtreecommitdiff
path: root/src/vim9script.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-23 22:41:43 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-23 22:41:43 +0200
commit40f4f7a48cae491f83bd3cdbf7e9b5a23ed870ef (patch)
tree877d3dba233503a446f13f7315bd4e29579177cc /src/vim9script.c
parent43e969d3f98766824c18d20b84f2fab00feef683 (diff)
downloadvim-git-40f4f7a48cae491f83bd3cdbf7e9b5a23ed870ef.tar.gz
patch 8.2.1287: Vim9: crash when using an imported functionv8.2.1287
Problem: Vim9: crash when using an imported function. Solution: Add the function type to the imported entry. (closes #6522)
Diffstat (limited to 'src/vim9script.c')
-rw-r--r--src/vim9script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vim9script.c b/src/vim9script.c
index 34c3dabcf..784283ef9 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -465,7 +465,10 @@ handle_import(
imported->imp_var_vals_idx = idx;
}
else
+ {
+ imported->imp_type = ufunc->uf_func_type;
imported->imp_funcname = ufunc->uf_name;
+ }
}
}
erret: