commit | 1735bc988c546cc962c5f94792815b4d7cb79710 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Mar 14 23:05:14 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Mar 14 23:05:14 2016 +0100 |
tree | 5d1fcc3e5d0f0d37fa33097c2eacff4cbc2317d4 | |
parent | 9cdf86b86f5fdb5a45b682f336846f9d9a9c6f1f [diff] [blame] |
patch 7.4.1559 Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
diff --git a/src/if_py_both.h b/src/if_py_both.h index e916e6a..8070bd6 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -2944,7 +2944,7 @@ 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