Remove space before server unread count

This commit is contained in:
Johannes Findeisen 2026-12-02 05:35:25 +01:00
commit 5de878113a

2
irc9.c
View file

@ -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);