From 6d33808611eb2af13467f4994c0bbaaf8e314eab Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 17 Mar 2014 21:15:23 -0700 Subject: fix line drawing --- term.c | 8 +++++--- 1 file 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; -- cgit v1.2.3