bk_text and bk_info both need to know the on-screen width of
[sgt/halibut] / bk_text.c
index 373de74..8fa7340 100644 (file)
--- 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: