From acf57aeb299659d3a13f354197efbd11ec428cb6 Mon Sep 17 00:00:00 2001 From: Cedric Duval Date: Mon, 3 Oct 2005 09:01:12 +0000 Subject: [PATCH] Fixed incorrect handling of multibyte strings. --- ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2