From 3b585e6dbb0b9821d8bce38b2bec7cb238a6df6f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Jul 2021 05:45:39 +0530 Subject: [PATCH] Fix #3840 --- kitty/freetype_render_ui_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/freetype_render_ui_text.c b/kitty/freetype_render_ui_text.c index f22284f49..3a6f10246 100644 --- a/kitty/freetype_render_ui_text.c +++ b/kitty/freetype_render_ui_text.c @@ -404,7 +404,7 @@ process_codepoint(RenderCtx *ctx, RenderState *rs, char_type codep, char_type ne Face *fallback_font = NULL; if (is_combining_char(codep)) { add_to_current_buffer = true; - } if (glyph_id_for_codepoint(&main_face, codep) > 0) { + } else if (glyph_id_for_codepoint(&main_face, codep) > 0) { add_to_current_buffer = rs->current_face == &main_face; if (!add_to_current_buffer) fallback_font = &main_face; } else {