mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.1559
Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user