summaryrefslogtreecommitdiff
path: root/src/if_python3.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-14 23:05:14 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-14 23:05:14 +0100
commit1735bc988c546cc962c5f94792815b4d7cb79710 (patch)
tree5d1fcc3e5d0f0d37fa33097c2eacff4cbc2317d4 /src/if_python3.c
parent9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f (diff)
downloadvim-git-1735bc988c546cc962c5f94792815b4d7cb79710.tar.gz
patch 7.4.1559v7.4.1559
Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
Diffstat (limited to 'src/if_python3.c')
-rw-r--r--src/if_python3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if_python3.c b/src/if_python3.c
index 84302bd63..5cf508fc7 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -1654,6 +1654,7 @@ do_py3eval (char_u *str, typval_T *rettv)
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
+ case VAR_PARTIAL: ++rettv->vval.v_partial->pt_refcount; break;
case VAR_UNKNOWN:
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = 0;