X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.c;fp=ui.c;h=e2833b5a67808ad405d99d092f9a49692faf73eb;hb=acf57aeb299659d3a13f354197efbd11ec428cb6;hp=b4152699b560df0e02f664133c8ccf3520bd45f0;hpb=52de7eeef99cc9c986c922f659ca900a6dc45094;p=pkg%2Fabook.git 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;