=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.234 retrieving revision 1.235 diff -u -p -r1.234 -r1.235 --- mandoc/term.c 2014/11/01 04:03:49 1.234 +++ mandoc/term.c 2014/11/16 21:29:35 1.235 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.234 2014/11/01 04:03:49 schwarze Exp $ */ +/* $Id: term.c,v 1.235 2014/11/16 21:29:35 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -254,8 +254,10 @@ term_flushln(struct termp *p) * If there was trailing white space, it was not printed; * so reset the cursor position accordingly. */ - if (vis) + if (vis > vbl) vis -= vbl; + else + vis = 0; p->col = 0; p->overstep = 0;