0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1129

Problem:    Python None value can't be converted to a Vim value.
Solution:   Just use zero. (Damien)
This commit is contained in:
Bram Moolenaar
2016-01-17 22:37:03 +01:00
parent 85084ef1e9
commit 77324fc9d3
6 changed files with 9 additions and 1 deletions

View File

@@ -5521,7 +5521,7 @@ run_eval(const char *cmd, typval_T *rettv
}
else
{
if (ConvertFromPyObject(run_ret, rettv) == -1)
if (run_ret != Py_None && ConvertFromPyObject(run_ret, rettv) == -1)
EMSG(_("E859: Failed to convert returned python object to vim value"));
Py_DECREF(run_ret);
}