mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Drop wide (two cell) characters on width one windows
This commit is contained in:
parent
9836cec19a
commit
4dd3156ca7
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue