0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1152: Vim9: function reference is missing script prefix

Problem:    Vim9: function reference is missing script prefix.
Solution:   Use the actual function name instead of the name searched for in
            the script context. (closes #6412)
This commit is contained in:
Bram Moolenaar
2020-07-07 22:50:12 +02:00
parent 0ab55d6201
commit fe465a01cf
3 changed files with 37 additions and 1 deletions

View File

@@ -2676,7 +2676,8 @@ generate_funcref(cctx_T *cctx, char_u *name)
if (ufunc == NULL)
return FAIL;
return generate_PUSHFUNC(cctx, vim_strsave(name), ufunc->uf_func_type);
return generate_PUSHFUNC(cctx, vim_strsave(ufunc->uf_name),
ufunc->uf_func_type);
}
/*