summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdocterm.c')
-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");