X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fmenu.c;h=01f0ab811818abed03ee8543fd879db6b7c2f408;hp=f509ae057a6cfc3323e076b2f2977f5505812db1;hb=e7a772dca1b86e4036d25038ee67aa34dd217c07;hpb=0a19973a356fb85d0b1e2a2f02820a3e5071f402 diff --git a/lib-ui/menu.c b/lib-ui/menu.c index f509ae0..01f0ab8 100644 --- a/lib-ui/menu.c +++ b/lib-ui/menu.c @@ -117,7 +117,7 @@ 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 ((k = mbrtowc (&wc, (char *) s, n, &mbstate)) != (size_t)-1) { addnstr ((char *) s, k); s += k, n -= k; } @@ -984,10 +984,6 @@ int mutt_menuLoop (MUTTMENU * menu) mutt_what_key (); break; - case OP_REBUILD_CACHE: - mx_rebuild_cache (); - break; - case OP_REDRAW: clearok (stdscr, TRUE); menu->redraw = REDRAW_FULL;