X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/f6aa1baa5ceeef9b9eb07bfb1be21257d01a42dc..adc300f62b7fbe5b7eb742b3042e1bb923a8093a:/term.c?ds=sidebyside diff --git a/term.c b/term.c index 76fdeab0..8e976228 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.279 2019/01/04 03:21:02 schwarze Exp $ */ +/* $Id: term.c,v 1.280 2019/01/15 12:16:18 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2019 Ingo Schwarze @@ -374,8 +374,9 @@ term_field(struct termp *p, size_t vbl, size_t nbr, size_t vbr, size_t vtarget) continue; case ' ': case ASCII_NBRSP: - vbl++; - vis++; + dv = (*p->width)(p, ' '); + vbl += dv; + vis += dv; continue; default: break;