summaryrefslogtreecommitdiffstats
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
commitb91ebfead4e5c9a7e1474e1ed5347724613df9d6 (patch)
tree51be4532c14e9004fcbf1431249109077d775ac0 /man_term.c
parent664c21875228ae7f241f792abcc521bc64e42067 (diff)
downloadmandoc-b91ebfead4e5c9a7e1474e1ed5347724613df9d6.tar.gz
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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 18924f29..19489b71 100644
--- a/man_term.c
+++ b/man_term.c
@@ -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';