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;
}
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 */
void menu_jump (MUTTMENU * menu)
{
int n;
- char buf[SHORT_STRING];
+ char buf[STRING];
if (menu->max) {
mutt_ungetch (LastKey, 0);
int r;
int searchDir;
regex_t re;
- char buf[SHORT_STRING];
+ char buf[STRING];
if (op != OP_SEARCH_NEXT && op != OP_SEARCH_OPPOSITE) {
m_strcpy(buf, sizeof(buf), NONULL(menu->searchBuf));
mutt_what_key ();
break;
- case OP_REBUILD_CACHE:
- mx_rebuild_cache ();
- break;
-
case OP_REDRAW:
clearok (stdscr, TRUE);
menu->redraw = REDRAW_FULL;