X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sidebar.c;h=c75b54f15c70d9c68c5bd885387dc2a68c0686c4;hp=305a5640f91d7634b049707b82be802b03233db5;hb=820b351118c174e9a5413a42ffbe778d837aecb5;hpb=3648b4eb2926b930816326ba2874a0648dcd81e7 diff --git a/sidebar.c b/sidebar.c index 305a564..c75b54f 100644 --- a/sidebar.c +++ b/sidebar.c @@ -106,7 +106,7 @@ static const char* sidebar_number_format (char* dest, size_t destlen, char op, 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': @@ -162,8 +162,7 @@ int make_sidebar_entry (char* box, int idx, size_t len) 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) */ @@ -308,10 +307,10 @@ int sidebar_draw (int menu) 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);