projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b790a
)
I don't understand how I missed that before...
author
Pierre Habouzit
<madcoder@debian.org>
Thu, 17 May 2007 20:20:34 +0000
(22:20 +0200)
committer
Pierre Habouzit
<madcoder@debian.org>
Thu, 17 May 2007 20:20:34 +0000
(22:20 +0200)
lib-lib/str.c
patch
|
blob
|
history
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 = '?';
+ pos ++;
+ break;
+
default:
w += iswprint(wc) ? wcwidth(wc) : 1;
pos += nb;