This commit is contained in:
Kovid Goyal 2021-10-25 09:17:29 +05:30
parent 71c62664cd
commit 23d0db5458
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -942,7 +942,7 @@ PYWRAP1(patch_global_colors) {
if (!PyArg_ParseTuple(args, "Op", &spec, &configured)) return NULL;
#define P(name) { \
PyObject *val = PyDict_GetItemString(spec, #name); \
if (val) { \
if (val && PyLong_Check(val)) { \
OPT(name) = PyLong_AsLong(val); \
} \
}