From: Pierre Habouzit Date: Thu, 17 May 2007 20:20:34 +0000 (+0200) Subject: I don't understand how I missed that before... X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=6eb22b54ec44fd63bea311f472c9aadc7176c230;ds=sidebyside I don't understand how I missed that before... --- diff --git a/lib-lib/str.c b/lib-lib/str.c index c71c459..30198aa 100644 --- a/lib-lib/str.c +++ b/lib-lib/str.c @@ -248,6 +248,9 @@ ssize_t m_strwidth (const char *s) case -1: /* assume we will replace that char with a ? later */ wc = '?'; + pos ++; + break; + default: w += iswprint(wc) ? wcwidth(wc) : 1; pos += nb;