mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
vt: no need to clear temporary utf8 buffer after printing it
This commit is contained in:
parent
dfc9554e89
commit
0954ffdf22
1 changed files with 0 additions and 1 deletions
1
vt.c
1
vt.c
|
|
@ -689,7 +689,6 @@ action(struct terminal *term, enum action action, uint8_t c)
|
||||||
//LOG_DBG("print: UTF8: %.*s", (int)term->vt.utf8.idx, term->vt.utf8.data);
|
//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);
|
memcpy(cell->c, term->vt.utf8.data, term->vt.utf8.idx);
|
||||||
cell->c[term->vt.utf8.idx] = '\0';
|
cell->c[term->vt.utf8.idx] = '\0';
|
||||||
memset(&term->vt.utf8, 0, sizeof(term->vt.utf8));
|
|
||||||
} else {
|
} else {
|
||||||
//LOG_DBG("print: ASCII: %c", c);
|
//LOG_DBG("print: ASCII: %c", c);
|
||||||
cell->c[0] = c;
|
cell->c[0] = c;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue