=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.110 retrieving revision 1.113 diff -u -p -r1.110 -r1.113 --- mandoc/term.c 2009/10/24 06:19:34 1.110 +++ mandoc/term.c 2009/10/26 17:05:44 1.113 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.110 2009/10/24 06:19:34 kristaps Exp $ */ +/* $Id: term.c,v 1.113 2009/10/26 17:05:44 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -19,6 +19,7 @@ #include #include #include +#include #include "chars.h" #include "out.h" @@ -204,7 +205,8 @@ term_flushln(struct termp *p) vis = 0; } /* Remove the overstep width. */ - bp += overstep; + bp += (int)/* LINTED */ + overstep; overstep = 0; } else { for (j = 0; j < (int)vbl; j++) @@ -222,14 +224,15 @@ term_flushln(struct termp *p) } vis += vsz; } + p->col = 0; + overstep = 0; if ( ! (TERMP_NOBREAK & p->flags)) { putchar('\n'); return; } - overstep = 0; if (TERMP_HANG & p->flags) { /* We need one blank after the tag. */ overstep = /* LINTED */