prev_show_value = option(OPTMBOXPANE);
}
- if ( SidebarWidth == 0 ) return 0;
+ if (SidebarWidth > 0 && option (OPTMBOXPANE) && mutt_strlen (SidebarDelim) >= SidebarWidth) {
+ mutt_error (_("Value for sidebar_delim is too long. Disabling sidebar."));
+ sleep (2);
+ unset_option (OPTMBOXPANE);
+ return (0);
+ }
+
+ if (SidebarWidth == 0 || !option (OPTMBOXPANE))
+ return 0;
/* draw the divider */
/* SETCOLOR(MT_COLOR_STATUS); */
for (lines = 1;
lines < LINES-1-(menu != MENU_PAGER || option (OPTSTATUSONTOP)); lines++ ) {
move(lines, SidebarWidth - delim_len);
- addstr (NONULL (SidebarDelim));
+ if (option (OPTASCIICHARS))
+ addstr (NONULL (SidebarDelim));
+ else if(!option(OPTASCIICHARS) && !strcmp(SidebarDelim,"|"))
+ addch(ACS_VLINE);
+ else if ((Charset_is_utf8) && !strcmp(SidebarDelim, "|"))
+ addstr ("\342\224\202");
+ else
+ addstr (NONULL (SidebarDelim));
}
SETCOLOR(MT_COLOR_NORMAL);