diff options
Diffstat (limited to 'mdocterm.c')
-rw-r--r-- | mdocterm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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"); |