summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-18 23:59:08 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-18 23:59:08 +0000
commite685d00aebe92d15022994ddc4ae0fc90fe64bee (patch)
tree34860742f1e364c03505ae25ebb3c64ba686bf19 /term.c
parent38cdc984f9af7ed09d36692dd15dbfa08eaff534 (diff)
downloadmandoc-e685d00aebe92d15022994ddc4ae0fc90fe64bee.tar.gz
Make any un-recognised font be considered a call for the Roman font.
This makes sequences of \f[unknown] \fP not completely puke. From a TODO by schwarze@.
Diffstat (limited to 'term.c')
-rw-r--r--term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/term.c b/term.c
index b90f9b7d..3f1bbe44 100644
--- a/term.c
+++ b/term.c
@@ -471,6 +471,8 @@ term_word(struct termp *p, const char *word)
case (ESCAPE_FONTITALIC):
term_fontrepl(p, TERMFONT_UNDER);
break;
+ case (ESCAPE_FONT):
+ /* FALLTHROUGH */
case (ESCAPE_FONTROMAN):
term_fontrepl(p, TERMFONT_NONE);
break;