-/* $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 <kristaps@kth.se>
*
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");