diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-04 07:26:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-04 07:26:34 +0000 |
| commit | a191d98d09bc583b45b85c033aba64a1a0e042a9 (patch) | |
| tree | 617391755ad05cefc3c5111f1f85faeb6f31c4ee /vt.c | |
| parent | Merge branch 'fast-scroll' (diff) | |
vt: bug fix: clear utf-8 state after printing a utf-8 character
Diffstat (limited to 'vt.c')
| -rw-r--r-- | vt.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
