From 518e0f4e2139ac7d9cd2ec81c9d09ecbeee4bf3c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Oct 2021 12:52:57 +0530 Subject: [PATCH] oops --- kitty/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/screen.c b/kitty/screen.c index 120959120..82028cf6c 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -1928,8 +1928,8 @@ static void parse_prompt_mark(Screen *self, PyObject *parts, PromptKind *pk) { for (Py_ssize_t i = 0; i < PyList_GET_SIZE(parts); i++) { PyObject *token = PyList_GET_ITEM(parts, i); - if (PyUnicode_CompareWithASCIIString(token, "k=s")) *pk = SECONDARY_PROMPT; - else if (PyUnicode_CompareWithASCIIString(token, "redraw=0")) self->prompt_settings.redraws_prompts_at_all = 0; + if (PyUnicode_CompareWithASCIIString(token, "k=s") == 0) *pk = SECONDARY_PROMPT; + else if (PyUnicode_CompareWithASCIIString(token, "redraw=0") == 0) self->prompt_settings.redraws_prompts_at_all = 0; } }