Move score_* to mod_score
[apps/madmutt.git] / lib-ui / menu.c
index 79fe3ec..01f0ab8 100644 (file)
@@ -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;
     }
@@ -142,10 +142,7 @@ static void menu_pad_string (char *s, size_t n)
   int cols;
   char *tmpbuf = p_new(char, n);
 
-  if (option (OPTMBOXPANE))
-    cols = COLS - shift - SidebarWidth;
-  else
-    cols = COLS - shift;
+  cols = COLS - SW - shift;
   mutt_format_string (tmpbuf, n, cols, cols, 0, ' ', s, m_strlen(s), 1);
   tmpbuf[n - 1] = 0;
   snprintf (s, n, "%s", tmpbuf);        /* overkill */
@@ -987,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;