summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-11 07:23:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-11 07:23:04 +0000
commit4320829a9974a95546e94df94a6b70b6b4831a68 (patch)
treee3ea0982f86fbdfebf5723d37be88cb45b4fad26 /term.c
parent7172afe8498d9da876e08e39960b11f31467e9ca (diff)
downloadmandoc-4320829a9974a95546e94df94a6b70b6b4831a68.tar.gz
Teach -Tps to ignore backspace-encoding by using a one-char buffer and a
simple state machine. This paves the way for decorated text.
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/term.c b/term.c
index a3093d60..f9c43be2 100644
--- a/term.c
+++ b/term.c
@@ -603,10 +603,7 @@ encode(struct termp *p, const char *word, size_t sz)
* character by character.
*/
- if (TERMTYPE_PS == p->type) {
- buffera(p, word, sz);
- return;
- } else if (TERMFONT_NONE == (f = term_fonttop(p))) {
+ if (TERMFONT_NONE == (f = term_fonttop(p))) {
buffera(p, word, sz);
return;
}