]> git.deb.at Git - pkg/abook.git/commitdiff
Fixed incorrect handling of multibyte strings.
authorCedric Duval <cedricduval@free.fr>
Mon, 3 Oct 2005 09:01:12 +0000 (09:01 +0000)
committerCedric Duval <cedricduval@free.fr>
Mon, 3 Oct 2005 09:01:12 +0000 (09:01 +0000)
ui.c

diff --git a/ui.c b/ui.c
index b4152699b560df0e02f664133c8ccf3520bd45f0..e2833b5a67808ad405d99d092f9a49692faf73eb 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -248,8 +248,8 @@ statusline_addhlstr(const char *str)
                                wattrset(bottom, (*p == '>') ? A_BOLD : A_NORMAL);
                                tmp = xstrndup(start, p - start);
                                mvwaddstr(bottom, 1, pos, tmp);
+                               pos += strwidth(tmp);
                                free(tmp);
-                               pos += p - start;
                        }
                        if(*p) {
                                start = p + 1;