=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.200 retrieving revision 1.201 diff -u -p -r1.200 -r1.201 --- mandoc/term.c 2011/09/19 22:36:16 1.200 +++ mandoc/term.c 2011/09/21 09:57:13 1.201 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.200 2011/09/19 22:36:16 schwarze Exp $ */ +/* $Id: term.c,v 1.201 2011/09/21 09:57:13 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -184,14 +184,12 @@ term_flushln(struct termp *p) if (vend > bp && 0 == jhy && vis > 0) { vend -= vis; (*p->endline)(p); + p->viscol = 0; if (TERMP_NOBREAK & p->flags) { - p->viscol = p->rmargin; - (*p->advance)(p, p->rmargin); + vbl = p->rmargin; vend += p->rmargin - p->offset; - } else { - p->viscol = 0; + } else vbl = p->offset; - } /* Remove the p->overstep width. */