mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
vt: bug fix: clear utf-8 state after printing a utf-8 character
This commit is contained in:
parent
9f12bca21e
commit
a191d98d09
1 changed files with 1 additions and 0 deletions
1
vt.c
1
vt.c
|
|
@ -714,6 +714,7 @@ action(struct terminal *term, enum action action, uint8_t c)
|
|||
//LOG_DBG("print: UTF8: %.*s", (int)term->vt.utf8.idx, term->vt.utf8.data);
|
||||
memcpy(cell->c, term->vt.utf8.data, term->vt.utf8.idx);
|
||||
cell->c[term->vt.utf8.idx] = '\0';
|
||||
term->vt.utf8.idx = 0;
|
||||
} else {
|
||||
//LOG_DBG("print: ASCII: %c", c);
|
||||
cell->c[0] = c;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue