summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/term.c b/term.c
index af97796a..1c7cce6e 100644
--- a/term.c
+++ b/term.c
@@ -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;