=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.126 retrieving revision 1.128 diff -u -p -r1.126 -r1.128 --- mandoc/term.c 2009/11/12 05:58:30 1.126 +++ mandoc/term.c 2010/01/01 17:14:30 1.128 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.126 2009/11/12 05:58:30 kristaps Exp $ */ +/* $Id: term.c,v 1.128 2010/01/01 17:14:30 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -14,6 +14,10 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include @@ -487,7 +491,10 @@ term_word(struct termp *p, const char *word) default: break; } + word += sz; + if (DECO_NOSPACE == deco && '\0' == *word) + p->flags |= TERMP_NOSPACE; } if (sv[0] && 0 == sv[1])