=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/man_term.c,v retrieving revision 1.73 retrieving revision 1.74 diff -u -r1.73 -r1.74 --- src/usr.bin/mandoc/man_term.c 2011/09/20 09:02:18 1.73 +++ src/usr.bin/mandoc/man_term.c 2011/09/20 13:13:21 1.74 @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.73 2011/09/20 09:02:18 schwarze Exp $ */ +/* $Id: man_term.c,v 1.74 2011/09/20 13:13:21 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -822,7 +822,8 @@ sz = (size_t)ival; mt->offset += sz; - p->offset = mt->offset; + p->rmargin = p->maxrmargin; + p->offset = mt->offset < p->rmargin ? mt->offset : p->rmargin; if (++mt->lmarginsz < MAXMARGINS) mt->lmargincur = mt->lmarginsz;