Remove space before server unread count
This commit is contained in:
parent
d39848e410
commit
5de878113a
1 changed files with 1 additions and 1 deletions
2
irc9.c
2
irc9.c
|
|
@ -2954,7 +2954,7 @@ static void draw_tree(void)
|
|||
long long unread = server_unread_messages(s);
|
||||
int columns = treew - 3;
|
||||
char count[32] = "";
|
||||
int count_width = unread ? snprintf(count, sizeof count, " (%lld)", unread) : 0;
|
||||
int count_width = unread ? snprintf(count, sizeof count, "(%lld)", unread) : 0;
|
||||
if (count_width > columns) count_width = 0;
|
||||
terminal_text(s->name ? s->name : s->host, columns - count_width);
|
||||
if (count_width) fputs(count, stdout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue