=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term.c,v retrieving revision 1.94 retrieving revision 1.95 diff -u -r1.94 -r1.95 --- src/usr.bin/mandoc/term.c 2014/11/01 04:03:22 1.94 +++ src/usr.bin/mandoc/term.c 2014/11/16 21:29:27 1.95 @@ -1,4 +1,4 @@ -/* $OpenBSD: term.c,v 1.94 2014/11/01 04:03:22 schwarze Exp $ */ +/* $OpenBSD: term.c,v 1.95 2014/11/16 21:29:27 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -252,8 +252,10 @@ * 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;