Merge branch 'microoptimization' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2018-11-10 10:50:03 +05:30
commit ad92541ff3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -395,7 +395,7 @@ PYWRAP1(set_options) {
S(macos_hide_from_tasks, PyObject_IsTrue); S(macos_hide_from_tasks, PyObject_IsTrue);
S(macos_thicken_font, PyFloat_AsDouble); S(macos_thicken_font, PyFloat_AsDouble);
GA(tab_bar_style); if (!ret) return NULL; GA(tab_bar_style);
global_state.tab_bar_hidden = PyUnicode_CompareWithASCIIString(ret, "hidden") == 0 ? true: false; global_state.tab_bar_hidden = PyUnicode_CompareWithASCIIString(ret, "hidden") == 0 ? true: false;
Py_CLEAR(ret); Py_CLEAR(ret);
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;