diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-10-14 11:18:50 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-10-14 11:18:50 +0200 |
commit | 29bb67f1beefc7fd393dbfd9ee77d92f1db3a3c0 (patch) | |
tree | edaeb40abcb04a2d89e2886cd583ef497f2ad469 /src/evalfunc.c | |
parent | 69fb5afb3bc9da24c2fb0eafb0027ba9c6502fc2 (diff) |
patch 9.0.2019: Vim9: no support for funcrefsv9.0.2019
Problem: Vim9: no support for funcrefs
Solution: Add support for object/class funcref members
closes: #11981 #12417 #12960 #12324 #13333
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 5fccf5270c..85c64a23a2 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4801,6 +4801,9 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref) pt->pt_auto = arg_pt->pt_auto; if (pt->pt_dict != NULL) ++pt->pt_dict->dv_refcount; + pt->pt_obj = arg_pt->pt_obj; + if (pt->pt_obj != NULL) + ++pt->pt_obj->obj_refcount; } pt->pt_refcount = 1; |