From cb55878efd73e031b911cecd1d36cb63b5a63de8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 May 2022 19:42:20 +0530 Subject: [PATCH] Fix #5129 --- kitty/options/to-c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/options/to-c.h b/kitty/options/to-c.h index 0a80e8226..a0e4a8769 100644 --- a/kitty/options/to-c.h +++ b/kitty/options/to-c.h @@ -129,8 +129,8 @@ pointer_shape(PyObject *shape_name) { static int macos_colorspace(PyObject *csname) { - if (PyUnicode_CompareWithASCIIString(csname, "srgb")) return 1; - if (PyUnicode_CompareWithASCIIString(csname, "displayp3")) return 2; + if (PyUnicode_CompareWithASCIIString(csname, "srgb") == 0) return 1; + if (PyUnicode_CompareWithASCIIString(csname, "displayp3") == 0) return 2; return 0; }