This commit is contained in:
Kovid Goyal 2021-12-31 09:32:27 +05:30
parent e45697f78a
commit 251667a30e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -662,10 +662,8 @@ draw_codepoint(Screen *self, char_type och, bool from_input_stream) {
CALLBACK("on_activity_since_last_focus", NULL); CALLBACK("on_activity_since_last_focus", NULL);
} }
uint32_t ch = och < 256 ? self->g_charset[och] : och; uint32_t ch = och < 256 ? self->g_charset[och] : och;
bool is_cc = is_combining_char(ch); if (UNLIKELY(is_combining_char(ch))) {
if (UNLIKELY(is_cc)) { if (UNLIKELY(is_flag_codepoint(ch))) {
bool is_flag = is_flag_codepoint(ch);
if (UNLIKELY(is_flag)) {
if (draw_second_flag_codepoint(self, ch)) return; if (draw_second_flag_codepoint(self, ch)) return;
} else { } else {
draw_combining_char(self, ch); draw_combining_char(self, ch);