mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-07-11 11:03:58 -04:00
vt: utf8-print: don’t build a compose chain on a zero-width base character
This commit is contained in:
parent
6187aa0b1b
commit
dc5019a535
1 changed files with 98 additions and 96 deletions
2
vt.c
2
vt.c
|
|
@ -640,6 +640,7 @@ action_utf8_print(struct terminal *term, wchar_t wc)
|
|||
#endif
|
||||
|
||||
int base_width = wcwidth(base);
|
||||
if (base_width > 0) {
|
||||
term->grid->cursor.point.col = col;
|
||||
term->grid->cursor.lcf = false;
|
||||
|
||||
|
|
@ -753,6 +754,7 @@ action_utf8_print(struct terminal *term, wchar_t wc)
|
|||
LOG_WARN("maximum number of composed characters reached");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
term_reset_grapheme_state(term);
|
||||
if (width > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue