Use a single marker for folded servers
This commit is contained in:
parent
847886a879
commit
f20a1e9d94
2 changed files with 4 additions and 4 deletions
6
irc9.c
6
irc9.c
|
|
@ -2845,10 +2845,10 @@ static void draw_tree(void)
|
|||
if (treew > 3) {
|
||||
terminal_move(y, 1);
|
||||
fputs(w == curwin ? (terminal_color ? "\033[1;4m" : "\033[7m") : "\033[1m", stdout);
|
||||
putchar(s->connected ? '*' : ' ');
|
||||
if (s->tree_folded) putchar('+');
|
||||
char marker = s->connected ? '*' : ' ';
|
||||
putchar(s->tree_folded ? '+' : marker);
|
||||
long long unread = server_unread_messages(s);
|
||||
int columns = treew - 3 - s->tree_folded;
|
||||
int columns = treew - 3;
|
||||
char count[32] = "";
|
||||
int count_width = unread ? snprintf(count, sizeof count, " (%lld)", unread) : 0;
|
||||
if (count_width > columns) count_width = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue