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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user