X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f6e654658b26268259b9dbe2e365d77cb6cacfab..e31a0f53328be6de24f22205cc536d994540610f:/mdocterm.c?ds=sidebyside diff --git a/mdocterm.c b/mdocterm.c index 820edd5b..26304aca 100644 --- a/mdocterm.c +++ b/mdocterm.c @@ -1,4 +1,4 @@ -/* $Id: mdocterm.c,v 1.29 2009/03/04 13:57:35 kristaps Exp $ */ +/* $Id: mdocterm.c,v 1.30 2009/03/04 14:04:02 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -316,7 +316,7 @@ flushln(struct termp *p) putchar('\n'); for (j = 0; j < p->rmargin; j++) putchar(' '); - vis = p->offset; + vis = p->rmargin - p->offset; } else if (vis + vsz > bp) warnx("word breaks right margin");