X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/bf7b0c823358aaab5d2f765ac694a66f09d72eef..e31a0f53328be6de24f22205cc536d994540610f:/mdocterm.c diff --git a/mdocterm.c b/mdocterm.c index 9149a6d9..26304aca 100644 --- a/mdocterm.c +++ b/mdocterm.c @@ -1,4 +1,4 @@ -/* $Id: mdocterm.c,v 1.28 2009/03/03 22:17:19 kristaps Exp $ */ +/* $Id: mdocterm.c,v 1.30 2009/03/04 14:04:02 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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->rmargin - p->offset; } else if (vis + vsz > bp) warnx("word breaks right margin");