X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=sidebar.c;h=4ea49d4ae17ec5ac28ef06959e48fdb425dfbffc;hb=e25811a4e3b78d25ccffcbe272b31d625138c61e;hp=57043bac6f5006a6e1ffcd4457a85147061e3788;hpb=214bf21ecb1ed92f20dd091da6fb746e21855823;p=apps%2Fmadmutt.git diff --git a/sidebar.c b/sidebar.c index 57043ba..4ea49d4 100644 --- a/sidebar.c +++ b/sidebar.c @@ -217,9 +217,12 @@ int make_sidebar_entry (char* box, int idx, size_t len) else #endif if (l_m > 0 && str_ncmp (box, Maildir, l_m) == 0 && - str_len (box) > l_m) + str_len (box) > l_m) { box += l_m; - else + if (Maildir[strlen(Maildir)-1]!='/') { + box += 1; + } + } else box = basename (box); if (option (OPTSHORTENHIERARCHY) && str_len (box) > len-lencnt-1) {