From: Kristaps Dzonsons Date: Wed, 4 Mar 2009 14:04:02 +0000 (+0000) Subject: Proper fix to NOBREAK margins (oops). X-Git-Tag: VERSION_1_4_2~22 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/e31a0f53328be6de24f22205cc536d994540610f?ds=sidebyside Proper fix to NOBREAK margins (oops). --- 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");