X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fsidebar.c;h=8065e5576b1700e255a05cc99f60de851bc7f7e0;hb=9d1d3eb0666af7f3f3551579601920f1bced8407;hp=9f6e9cea483d50e26ad743bdf53ae80e3122c513;hpb=b23d5033080fe9f9fba038e3cf1e3ec2b0a0d33d;p=apps%2Fmadmutt.git diff --git a/lib-ui/sidebar.c b/lib-ui/sidebar.c index 9f6e9ce..8065e55 100644 --- a/lib-ui/sidebar.c +++ b/lib-ui/sidebar.c @@ -186,7 +186,6 @@ static int make_sidebar_entry (char* sbox, int idx, ssize_t len) { int shortened = 0, lencnt = 0; char no[STRING], entry[STRING]; - int l = m_strlen(ImapHomeNamespace); int l_m = m_strlen(Maildir); if (SidebarWidth > COLS) @@ -202,10 +201,6 @@ static int make_sidebar_entry (char* sbox, int idx, ssize_t len) m_strformat(no, len, SidebarWidth, SidebarNumberFormat, sidebar_number_format, idx, 0); lencnt = m_strlen(no); - if (l > 0 && m_strncmp(sbox, ImapHomeNamespace, l) == 0 && - m_strlen(sbox) > l) - sbox += l + 1; /* we're trimming the ImapHomeNamespace, the "+ 1" is for the separator */ - else if (l_m > 0 && m_strncmp(sbox, Maildir, l_m) == 0 && m_strlen(sbox) > l_m) { sbox += l_m;