Drop wide (two cell) characters on width one windows

This commit is contained in:
Kovid Goyal 2026-07-26 10:08:26 +05:30
parent 9836cec19a
commit 4dd3156ca7
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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);