projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop account-hooks for now.
[apps/madmutt.git]
/
lib-lib
/
str.c
diff --git
a/lib-lib/str.c
b/lib-lib/str.c
index
c71c459
..
30198aa
100644
(file)
--- 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 = '?';
case -1: /* assume we will replace that char with a ? later */
wc = '?';
+ pos ++;
+ break;
+
default:
w += iswprint(wc) ? wcwidth(wc) : 1;
pos += nb;
default:
w += iswprint(wc) ? wcwidth(wc) : 1;
pos += nb;