summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 13:57:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 13:57:35 +0000
commit7827eedf059a1551d71666af5d70b51a7ab536bc (patch)
tree7a54e90f16ed2bcb5ab2ecb80a4e605455ae714f /mdocterm.c
parent978c841bef6356b836aa769aee366d3c5a6f64c6 (diff)
downloadmandoc-7827eedf059a1551d71666af5d70b51a7ab536bc.tar.gz
Considerably cleaned up list handling.
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 0913a1b2..16e081b6 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -189,8 +189,7 @@ main(int argc, char *argv[])
if (NULL == (mdoc = mmain_mdoc(p)))
mmain_exit(p, 1);
- termp.maxrmargin = 78; /* XXX */
- termp.rmargin = termp.maxrmargin;
+ termp.maxrmargin = termp.rmargin = 78; /* XXX */
termp.maxcols = 1024;
termp.offset = termp.col = 0;
termp.flags = TERMP_NOSPACE;
@@ -317,7 +316,7 @@ flushln(struct termp *p)
putchar('\n');
for (j = 0; j < p->rmargin; j++)
putchar(' ');
- vis = p->rmargin;
+ vis = p->offset;
} else if (vis + vsz > bp)
warnx("word breaks right margin");