diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-14 23:05:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-14 23:05:14 +0100 |
commit | 1735bc988c546cc962c5f94792815b4d7cb79710 (patch) | |
tree | 5d1fcc3e5d0f0d37fa33097c2eacff4cbc2317d4 /src/if_python.c | |
parent | 9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f (diff) | |
download | vim-1735bc988c546cc962c5f94792815b4d7cb79710.zip |
patch 7.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_python.c')
-rw-r--r-- | src/if_python.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if_python.c b/src/if_python.c index 56b0ee597..fa3fc88a8 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -1561,6 +1561,7 @@ do_pyeval (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; |