From: Cedric Duval Date: Mon, 3 Oct 2005 09:01:12 +0000 (+0000) Subject: Fixed incorrect handling of multibyte strings. X-Git-Tag: upstream/0.6.1~2^2~136 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=acf57aeb299659d3a13f354197efbd11ec428cb6;p=pkg%2Fabook.git Fixed incorrect handling of multibyte strings. --- diff --git a/ui.c b/ui.c index b415269..e2833b5 100644 --- 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;