X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sidebar.c;h=5ce19220145b788ee29b7aff2c64dd5023e59475;hp=ab95a2255b59fd2f0e1f4a98b186d376899560ab;hb=6771688a116512f5fc5ce0844dc5987a22c2e0f6;hpb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c diff --git a/sidebar.c b/sidebar.c index ab95a22..5ce1922 100644 --- a/sidebar.c +++ b/sidebar.c @@ -102,7 +102,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 && str_eq (Context->path, b->path); + int c = Context && !m_strcmp(Context->path, b->path); switch (op) { /* deleted */ @@ -199,7 +199,7 @@ int make_sidebar_entry (char* box, int idx, size_t len) SidebarWidth = COLS; if (option (OPTSIDEBARNEWMAILONLY) && box && Context && Context->path && - !str_eq (Context->path, box) && ((BUFFY*) Incoming->data[idx])->new == 0) + m_strcmp(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) */