]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
fix lots of newt utf-8 display errors
authormsw <msw>
Wed, 18 Dec 2002 04:13:31 +0000 (04:13 +0000)
committermsw <msw>
Wed, 18 Dec 2002 04:13:31 +0000 (04:13 +0000)
newt.c

diff --git a/newt.c b/newt.c
index 9a1e73e9a188ff5d6d56d32bd6538fba4ecb9bf8..879e5fb57afa6df2768ba8cd4466d0ff7904cc4e 100644 (file)
--- a/newt.c
+++ b/newt.c
@@ -160,6 +160,7 @@ int wstrlen(const char *str, int len) {
                
                x = mbrtowc(&tmp,str,len,&ps);
                if (x >0) {
+                       str += x;
                        len -= x;
                        y = wcwidth(tmp);
                        if (y>0)