summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2014-03-17 21:15:23 -0700
committerKent Overstreet <kmo@daterainc.com>2014-03-17 21:15:23 -0700
commit6d33808611eb2af13467f4994c0bbaaf8e314eab (patch)
treea0020a6708f6413c33bc93570f9a9175bf15e551
parent2cfa99178a7dd61fb8dc1f06f51a4cb7a47d12b1 (diff)
fix line drawing
-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;