From 6eb22b54ec44fd63bea311f472c9aadc7176c230 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Thu, 17 May 2007 22:20:34 +0200 Subject: [PATCH] I don't understand how I missed that before... --- lib-lib/str.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.20.1