projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add printf-like primitive to the buffers.
[apps/madmutt.git]
/
lib-ui
/
sidebar.c
diff --git
a/lib-ui/sidebar.c
b/lib-ui/sidebar.c
index
9f6e9ce
..
8065e55
100644
(file)
--- 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 shortened = 0, lencnt = 0;
char no[STRING], entry[STRING];
- int l = m_strlen(ImapHomeNamespace);
int l_m = m_strlen(Maildir);
if (SidebarWidth > COLS)
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);
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;
if (l_m > 0 && m_strncmp(sbox, Maildir, l_m) == 0 &&
m_strlen(sbox) > l_m) {
sbox += l_m;