mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 12:42:25 +00:00
...
This commit is contained in:
parent
71c62664cd
commit
23d0db5458
1 changed files with 1 additions and 1 deletions
|
|
@ -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); \
|
||||
} \
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue