char tmp[SHORT_STRING];
BUFFY* b = (BUFFY*) Incoming->data[data];
int opt = flags & M_FORMAT_OPTIONAL;
- int c = Context && safe_strcmp (Context->path, b->path) == 0;
+ int c = Context && str_eq (Context->path, b->path);
switch (op) {
case 'c':
SidebarWidth = COLS;
if (option (OPTSIDEBARNEWMAILONLY) && box && Context && Context->path &&
- safe_strcmp (Context->path, box) != 0 &&
- ((BUFFY*) Incoming->data[idx])->new == 0)
+ !str_eq (Context->path, box) && ((BUFFY*) Incoming->data[idx])->new == 0)
/* if $sidebar_newmail_only is set, don't display the
* box only if it's not the currently opened
* (i.e. always display the currently opened) */
if (i == CurBuffy)
SETCOLOR (MT_COLOR_INDICATOR);
- else if (tmp->msg_flagged > 0)
- SETCOLOR (MT_COLOR_FLAGGED);
else if (tmp->new > 0)
SETCOLOR (MT_COLOR_NEW);
+ else if (tmp->msg_flagged > 0)
+ SETCOLOR (MT_COLOR_FLAGGED);
else
SETCOLOR (MT_COLOR_NORMAL);