=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.206 retrieving revision 1.208 diff -u -p -r1.206 -r1.208 --- mandoc/term.c 2012/11/16 17:16:55 1.206 +++ mandoc/term.c 2013/08/05 23:36:42 1.208 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.206 2012/11/16 17:16:55 schwarze Exp $ */ +/* $Id: term.c,v 1.208 2013/08/05 23:36:42 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011, 2012 Ingo Schwarze @@ -162,7 +162,7 @@ term_flushln(struct termp *p) */ for (j = i, jhy = 0; j < p->col; j++) { - if ((j && ' ' == p->buf[j]) || '\t' == p->buf[j]) + if (' ' == p->buf[j] || '\t' == p->buf[j]) break; /* Back over the the last printed character. */ @@ -406,14 +406,14 @@ term_word(struct termp *p, const char *word) if ( ! (TERMP_NOSPACE & p->flags)) { if ( ! (TERMP_KEEP & p->flags)) { - if (TERMP_PREKEEP & p->flags) - p->flags |= TERMP_KEEP; bufferc(p, ' '); if (TERMP_SENTENCE & p->flags) bufferc(p, ' '); } else bufferc(p, ASCII_NBRSP); } + if (TERMP_PREKEEP & p->flags) + p->flags |= TERMP_KEEP; if ( ! (p->flags & TERMP_NONOSPACE)) p->flags &= ~TERMP_NOSPACE;