Andreas Krennmair:
[apps/madmutt.git] / menu.c
diff --git a/menu.c b/menu.c
index 95bc43e..5e46eed 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -35,13 +35,10 @@ extern size_t UngetCount;
 
 static void print_enriched_string (int attr, unsigned char *s, int do_color)
 {
-  wchar_t wc;
   size_t k;
   size_t n = mutt_strlen ((char *)s);
-  mbstate_t mbstate;
   short f1, f2, b1, b2;
 
-  memset (&mbstate, 0, sizeof (mbstate));
   while (*s)
   {
     if (*s < M_TREE_MAX)
@@ -136,10 +133,10 @@ static void print_enriched_string (int attr, unsigned char *s, int do_color)
       }
       if (do_color) attrset(attr);
     }
-    else if ((k = mbrtowc (&wc, (char *)s, n, &mbstate)) > 0)
+    else if (*s > 0)
     {
-      addnstr ((char *)s, k);
-      s += k, n-= k;
+      addnstr ((char *)s, 1);
+      s += 1, n-= 1;
     }
     else
       break;