summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--term.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/term.c b/term.c
index 4d0bdcd..abe03f6 100644
--- a/term.c
+++ b/term.c
@@ -462,13 +462,15 @@ static void tsetchar(struct st_term *term, unsigned c, struct coord pos)
};
struct st_glyph *g = term_pos(term, pos);
+ const char *v;
/*
* The table is proudly stolen from rxvt.
*/
- if (term->c.attr.gfx)
- if (c >= 0x41 && c <= 0x7e && vt100_0[c - 0x41])
- c = *vt100_0[c - 0x41];
+ if (term->c.attr.gfx &&
+ c >= 0x41 && c <= 0x7e &&
+ (v = vt100_0[c - 0x41]))
+ FcUtf8ToUcs4((unsigned char *) v, &c, strlen(v));
term->dirty = true;
*g = term->c.attr;