projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the rest of mutt "things" into a window as well.
[apps/madmutt.git]
/
lib-ui
/
sidebar.c
diff --git
a/lib-ui/sidebar.c
b/lib-ui/sidebar.c
index
6f35e48
..
abf76d7
100644
(file)
--- a/
lib-ui/sidebar.c
+++ b/
lib-ui/sidebar.c
@@
-278,7
+278,7
@@
int sidebar_draw(void)
memset(&blank, ' ', sizeof(blank));
wmove(sw, 0, 0);
memset(&blank, ' ', sizeof(blank));
wmove(sw, 0, 0);
-
W
SETCOLOR(sw, MT_COLOR_STATUS);
+ SETCOLOR(sw, MT_COLOR_STATUS);
waddnstr(sw, blank, x);
line = 1;
waddnstr(sw, blank, x);
line = 1;
@@
-286,32
+286,32
@@
int sidebar_draw(void)
BUFFY *tmp = Incoming.arr[i];
if (i == CurBuffy)
BUFFY *tmp = Incoming.arr[i];
if (i == CurBuffy)
-
W
SETCOLOR(sw, MT_COLOR_INDICATOR);
+ SETCOLOR(sw, MT_COLOR_INDICATOR);
else if (tmp->new > 0)
else if (tmp->new > 0)
-
W
SETCOLOR(sw, MT_COLOR_NEW);
+ SETCOLOR(sw, MT_COLOR_NEW);
else if (tmp->msg_flagged > 0)
else if (tmp->msg_flagged > 0)
-
W
SETCOLOR(sw, MT_COLOR_FLAGGED);
+ SETCOLOR(sw, MT_COLOR_FLAGGED);
else
else
-
W
SETCOLOR(sw, MT_COLOR_NORMAL);
+ SETCOLOR(sw, MT_COLOR_NORMAL);
if (make_sidebar_entry(sw, tmp->path, i, x - 1)) {
if (make_sidebar_entry(sw, tmp->path, i, x - 1)) {
-
W
SETCOLOR(sw, MT_COLOR_SIDEBAR);
+ SETCOLOR(sw, MT_COLOR_SIDEBAR);
waddch(sw, ACS_VLINE);
line++;
}
}
while (line < y - 1) {
waddch(sw, ACS_VLINE);
line++;
}
}
while (line < y - 1) {
-
W
SETCOLOR(sw, MT_COLOR_NORMAL);
+ SETCOLOR(sw, MT_COLOR_NORMAL);
waddnstr(sw, blank, x - 1);
waddnstr(sw, blank, x - 1);
-
W
SETCOLOR(sw, MT_COLOR_SIDEBAR);
+ SETCOLOR(sw, MT_COLOR_SIDEBAR);
waddch(sw, ACS_VLINE);
line++;
}
waddch(sw, ACS_VLINE);
line++;
}
-
W
SETCOLOR(sw, MT_COLOR_STATUS);
+ SETCOLOR(sw, MT_COLOR_STATUS);
waddnstr(sw, blank, x);
waddnstr(sw, blank, x);
-
W
SETCOLOR(sw, MT_COLOR_NORMAL);
+ SETCOLOR(sw, MT_COLOR_NORMAL);
return 0;
}
return 0;
}