aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-23 14:50:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-23 14:50:58 +0000
commit912db4b9792932105125cf0fbe472c889551fcfd (patch)
tree37c317ca248923679cb5e3d3ab8967ac5aebada0 /term.c
parentcec89eaaf3b18d9785ee5b9565004c2a4646cecf (diff)
downloadmandoc-912db4b9792932105125cf0fbe472c889551fcfd.tar.gz
mandoc-912db4b9792932105125cf0fbe472c889551fcfd.tar.zst
mandoc-912db4b9792932105125cf0fbe472c889551fcfd.zip
apply bold and italic to all non-ASCII Unicode codepoints,
fixing input like \fB\('e; issue reported by bentley@
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -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) {