From 4dd3156ca7ef429eeb449a4ae857f6406b83e0ef Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 26 Jul 2026 10:08:26 +0530 Subject: [PATCH] Drop wide (two cell) characters on width one windows --- kitty/screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/screen.c b/kitty/screen.c index 7bf07080e..8d5aeb565 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -1220,6 +1220,7 @@ draw_text_loop(Screen *self, const uint32_t *chars, size_t num_chars, text_loop_ self->last_graphic_char = ch; if (UNLIKELY(self->columns < self->cursor->x + (unsigned int)char_width)) { + if ((unsigned)char_width > self->columns) continue; // discard too wide character if (self->modes.mDECAWM) { continue_to_next_line(self); init_text_loop_line(self, s);