diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-23 14:50:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-23 14:50:58 +0000 |
commit | 912db4b9792932105125cf0fbe472c889551fcfd (patch) | |
tree | 37c317ca248923679cb5e3d3ab8967ac5aebada0 | |
parent | cec89eaaf3b18d9785ee5b9565004c2a4646cecf (diff) | |
download | mandoc-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@
-rw-r--r-- | term.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |