X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sidebar.c;h=059aa685f4490662afd8ebc04bae129177b27716;hp=305a5640f91d7634b049707b82be802b03233db5;hb=93f817273e1c70071cd5471594600bc70f12f0ff;hpb=63f828fbb1080f8de26ff5f0d04ec79c2b3daec4 diff --git a/sidebar.c b/sidebar.c index 305a564..059aa68 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) */