From 912db4b9792932105125cf0fbe472c889551fcfd Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 23 Oct 2015 14:50:58 +0000 Subject: apply bold and italic to all non-ASCII Unicode codepoints, fixing input like \fB\('e; issue reported by bentley@ --- term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'term.c') diff --git a/term.c b/term.c index 4bab9034..493d8770 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.254 2015/10/13 22:59:54 schwarze Exp $ */ +/* $Id: term.c,v 1.255 2015/10/23 14:50:58 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2015 Ingo Schwarze @@ -564,7 +564,7 @@ encode1(struct termp *p, int c) if (p->col + 7 >= p->maxcols) adjbuf(p, p->col + 7); - f = (c == ASCII_HYPH || isgraph(c)) ? + f = (c == ASCII_HYPH || c > 127 || isgraph(c)) ? p->fontq[p->fonti] : TERMFONT_NONE; if (p->flags & TERMP_BACKBEFORE) { -- cgit v1.2.3