]> git.cameronkatri.com Git - mandoc.git/commitdiff
Proper fix to NOBREAK margins (oops).
authorKristaps Dzonsons <kristaps@bsd.lv>
Wed, 4 Mar 2009 14:04:02 +0000 (14:04 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Wed, 4 Mar 2009 14:04:02 +0000 (14:04 +0000)
mdocterm.c

index 820edd5b61de087f366ce3cabff64dd7c4728639..26304acaff11bbb5e983a4c74eb7f80fc57928e6 100644 (file)
@@ -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 <kristaps@kth.se>
  *
@@ -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");