From 251667a30eefbb530247f1967d56458a4793b815 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 31 Dec 2021 09:32:27 +0530 Subject: [PATCH] ... --- kitty/screen.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kitty/screen.c b/kitty/screen.c index 594b8028c..0e61dddea 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -662,10 +662,8 @@ draw_codepoint(Screen *self, char_type och, bool from_input_stream) { CALLBACK("on_activity_since_last_focus", NULL); } uint32_t ch = och < 256 ? self->g_charset[och] : och; - bool is_cc = is_combining_char(ch); - if (UNLIKELY(is_cc)) { - bool is_flag = is_flag_codepoint(ch); - if (UNLIKELY(is_flag)) { + if (UNLIKELY(is_combining_char(ch))) { + if (UNLIKELY(is_flag_codepoint(ch))) { if (draw_second_flag_codepoint(self, ch)) return; } else { draw_combining_char(self, ch);