diff --git a/README.md b/README.md index 0ac8954..1cd76a5 100644 --- a/README.md +++ b/README.md @@ -111,12 +111,12 @@ Build yours by copying `irc9rc-example` to `irc9rc` next to the binary (or to ``` [irc9] irc.example / #general /----------------------\---------------------------------------- -|* irc.example | Topic: General discussion +|*irc.example | Topic: General discussion | |---------------------------------------- | |-#general | | |-#help(3) | | \-alice | [10:21] hello there -|* irc.other | [10:22] hi +|*irc.other | [10:22] hi | | [10:22] * alice!u@host joined #help \______________________/---------------------------------------- [10:23] (me@irc.example:6697 [TLS]) diff --git a/irc9.c b/irc9.c index 39ec0d6..e3a0389 100644 --- a/irc9.c +++ b/irc9.c @@ -2445,11 +2445,11 @@ static void draw_tree(void) for (Server *s = servers; s; s = s->next) { if (y >= bottom - 1) break; int selected = (serverwin(s) == curwin); - if (treew > 4) { + if (treew > 3) { terminal_move(y, 1); fputs(selected ? (terminal_color ? "\033[1;4m" : "\033[7m") : "\033[1m", stdout); - printf("%c ", s->connected ? '*' : ' '); - terminal_text(s->name ? s->name : s->host, treew - 4); + putchar(s->connected ? '*' : ' '); + terminal_text(s->name ? s->name : s->host, treew - 3); fputs("\033[0m", stdout); } y++;