summaryrefslogtreecommitdiff
path: root/bk_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'bk_text.c')
-rw-r--r--bk_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bk_text.c b/bk_text.c
index 373de74..8fa7340 100644
--- a/bk_text.c
+++ b/bk_text.c
@@ -480,7 +480,7 @@ static int text_width(void *ctx, word *text) {
attraux(text->aux) == attr_Always ? 0 : 1)
: 0) +
(cvt_ok(charset, text->text) || !text->alt ?
- ustrlen(text->text) :
+ ustrwid(text->text, charset) :
text_width_list(ctx, text->alt)));
case word_WhiteSpace: