=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- src/usr.bin/mandoc/term.c 2010/08/20 00:53:35 1.47 +++ src/usr.bin/mandoc/term.c 2010/08/20 23:22:07 1.48 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.47 2010/08/20 00:53:35 schwarze Exp $ */ +/* $Id: term.c,v 1.48 2010/08/20 23:22:07 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -270,6 +270,12 @@ vend += vbl; vis = vend; } + + /* + * If there was trailing white space, it was not printed; + * so reset the cursor position accordingly. + */ + vis -= vbl; p->col = 0; p->overstep = 0;