=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.272 retrieving revision 1.274 diff -u -p -r1.272 -r1.274 --- mandoc/term.c 2017/06/14 18:23:37 1.272 +++ mandoc/term.c 2017/07/28 14:25:48 1.274 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.272 2017/06/14 18:23:37 schwarze Exp $ */ +/* $Id: term.c,v 1.274 2017/07/28 14:25:48 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2017 Ingo Schwarze @@ -129,7 +129,7 @@ term_flushln(struct termp *p) p->maxrmargin - p->viscol - vbl : 0; vis = vend = 0; - if ((p->flags && TERMP_MULTICOL) == 0) + if ((p->flags & TERMP_MULTICOL) == 0) p->tcol->col = 0; while (p->tcol->col < p->tcol->lastcol) { @@ -526,9 +526,14 @@ term_word(struct termp *p, const char *word) p->flags |= (TERMP_NOSPACE | TERMP_NONEWLINE); continue; case ESCAPE_HORIZ: + if (*seq == '|') { + seq++; + uc = -p->col; + } else + uc = 0; if (a2roffsu(seq, &su, SCALE_EM) == NULL) continue; - uc = term_hen(p, &su); + uc += term_hen(p, &su); if (uc > 0) while (uc-- > 0) bufferc(p, ASCII_NBRSP);