summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:04:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:04:02 +0000
commite699e11f23b72c34a747908ff21ad93bac7905f4 (patch)
tree41924ad00648bcf74937f2a1e68c332be22947a6
parent7827eedf059a1551d71666af5d70b51a7ab536bc (diff)
downloadmandoc-e699e11f23b72c34a747908ff21ad93bac7905f4.tar.gz
Proper fix to NOBREAK margins (oops).
-rw-r--r--mdocterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdocterm.c b/mdocterm.c
index 16e081b6..b68841d9 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -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");