mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 23:54:20 +02:00
...
This commit is contained in:
@@ -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); \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user