summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
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_py_both.h
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_py_both.h')
-rw-r--r--src/if_py_both.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index e916e6aa8..8070bd6e0 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -2944,7 +2944,7 @@ FunctionCall(FunctionObject *self, PyObject *argsObject, PyObject *kwargs)
Python_Lock_Vim();
VimTryStart();
- error = func_call(name, &args, selfdict, &rettv);
+ error = func_call(name, &args, NULL, selfdict, &rettv);
Python_Release_Vim();
Py_END_ALLOW_THREADS