Remove spacing after the server connection marker

This commit is contained in:
Johannes Findeisen 2026-11-29 06:49:15 +01:00
commit 5f2f1d8e0c
2 changed files with 5 additions and 5 deletions

View file

@ -111,12 +111,12 @@ Build yours by copying `irc9rc-example` to `irc9rc` next to the binary (or to
``` ```
[irc9] irc.example / #general [irc9] irc.example / #general
/----------------------\---------------------------------------- /----------------------\----------------------------------------
|* irc.example | Topic: General discussion |*irc.example | Topic: General discussion
| |---------------------------------------- | |----------------------------------------
| |-#general | | |-#general |
| |-#help(3) | | |-#help(3) |
| \-alice | [10:21] <alice> hello there | \-alice | [10:21] <alice> hello there
|* irc.other | [10:22] <bob> hi |*irc.other | [10:22] <bob> hi
| | [10:22] * alice!u@host joined #help | | [10:22] * alice!u@host joined #help
\______________________/---------------------------------------- \______________________/----------------------------------------
[10:23] (me@irc.example:6697 [TLS]) [10:23] (me@irc.example:6697 [TLS])

6
irc9.c
View file

@ -2445,11 +2445,11 @@ static void draw_tree(void)
for (Server *s = servers; s; s = s->next) { for (Server *s = servers; s; s = s->next) {
if (y >= bottom - 1) break; if (y >= bottom - 1) break;
int selected = (serverwin(s) == curwin); int selected = (serverwin(s) == curwin);
if (treew > 4) { if (treew > 3) {
terminal_move(y, 1); terminal_move(y, 1);
fputs(selected ? (terminal_color ? "\033[1;4m" : "\033[7m") : "\033[1m", stdout); fputs(selected ? (terminal_color ? "\033[1;4m" : "\033[7m") : "\033[1m", stdout);
printf("%c ", s->connected ? '*' : ' '); putchar(s->connected ? '*' : ' ');
terminal_text(s->name ? s->name : s->host, treew - 4); terminal_text(s->name ? s->name : s->host, treew - 3);
fputs("\033[0m", stdout); fputs("\033[0m", stdout);
} }
y++; y++;