summaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-23 12:42:22 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-23 12:42:22 +0000
commit6adf409de7c4eda9b16c15d90820919fcd5150c2 (patch)
tree08bad15d230798bc76393f462b61e09c6e399597 /man_term.c
parent27be359286baae838840a62e6c36dac6b91cd810 (diff)
downloadmandoc-6adf409de7c4eda9b16c15d90820919fcd5150c2.tar.gz
mandoc-6adf409de7c4eda9b16c15d90820919fcd5150c2.tar.zst
mandoc-6adf409de7c4eda9b16c15d90820919fcd5150c2.zip
Fixed two very subtle bugs in retaining overstep and maxrmargin widths between parse sequences.
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/man_term.c b/man_term.c
index c15354c3..2e7397e0 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.57 2010/03/23 11:30:48 kristaps Exp $ */
+/* $Id: man_term.c,v 1.58 2010/03/23 12:42:22 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -156,10 +156,12 @@ terminal_man(void *arg, const struct man *man)
p = (struct termp *)arg;
+ p->overstep = 0;
+ p->maxrmargin = 65;
+
if (NULL == p->symtab)
switch (p->enc) {
case (TERMENC_ASCII):
- p->maxrmargin = 65;
p->symtab = chars_init(CHARS_ASCII);
break;
default:
@@ -883,6 +885,7 @@ print_man_head(struct termp *p, const struct man_meta *m)
size_t buflen, titlen;
p->rmargin = p->maxrmargin;
+
p->offset = 0;
buf[0] = title[0] = '\0';