diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-23 12:42:22 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-23 12:42:22 +0000 |
commit | b91ebfead4e5c9a7e1474e1ed5347724613df9d6 (patch) | |
tree | 51be4532c14e9004fcbf1431249109077d775ac0 /man_term.c | |
parent | 664c21875228ae7f241f792abcc521bc64e42067 (diff) | |
download | mandoc-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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'; |