This commit is contained in:
Kovid Goyal 2016-11-19 13:55:49 +05:30
parent 42976b1048
commit 12c19d3db1

View File

@ -861,7 +861,7 @@ void set_icon(Screen *self, const char *buf, unsigned int sz) {
}
void set_dynamic_color(Screen *self, unsigned int code, const char *buf, unsigned int sz) {
if (sz) PyObject_CallMethod(self->callbacks, "set_dynamic_color", "Iy#", code, buf, sz);
PyObject_CallMethod(self->callbacks, "set_dynamic_color", "Iy#", code, buf, sz);
if (PyErr_Occurred()) PyErr_Print();
PyErr_Clear();
}