diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-10-15 09:53:41 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-10-15 09:53:41 +0200 |
commit | 1ace49fb98fa93e2fcff421a5f7da1aa41c512ed (patch) | |
tree | 81bdee80df4b3e83614071cdbb2c66728c6407c7 /src/eval.c | |
parent | 5d03525cdef5db1b1cedfa26c6f8a21aaa207ec0 (diff) |
patch 9.0.2029: Vim9: no support for partials using call()v9.0.2029
Problem: Vim9: no support for partials using call()
Solution: Add support
closes: #13341
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 34502f965b..e888fecc8a 100644 --- a/src/eval.c +++ b/src/eval.c @@ -2551,6 +2551,12 @@ eval_func( funcexe.fe_lastline = curwin->w_cursor.lnum; funcexe.fe_evaluate = evaluate; funcexe.fe_partial = partial; + if (partial != NULL) + { + funcexe.fe_object = partial->pt_obj; + if (funcexe.fe_object != NULL) + ++funcexe.fe_object->obj_refcount; + } funcexe.fe_basetv = basetv; funcexe.fe_check_type = type; funcexe.fe_found_var = found_var; |