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
|
|
@ -152,7 +152,7 @@ uppercase names sorting before lowercase names in each group. An unread window
|
||||||
shows `(n)` next to its name. Each server shows its total unread count after
|
shows `(n)` next to its name. Each server shows its total unread count after
|
||||||
its name, including when folded. The server count appears after startup channel
|
its name, including when folded. The server count appears after startup channel
|
||||||
joins finish. Unread counts include chat messages, actions, and chat notices.
|
joins finish. Unread counts include chat messages, actions, and chat notices.
|
||||||
`*` marks a connected server. The selected server or window is shown bold and underlined. Highlights use the
|
`*` marks an unfolded, connected server. `+` marks a folded server. The selected server or window is shown bold and underlined. Highlights use the
|
||||||
terminal's default background so transparency is preserved where supported.
|
terminal's default background so transparency is preserved where supported.
|
||||||
Channel topics wrap to the chat pane width and stay at the top while you scroll.
|
Channel topics wrap to the chat pane width and stay at the top while you scroll.
|
||||||
On short terminals, the topic leaves room for at least one chat line when possible.
|
On short terminals, the topic leaves room for at least one chat line when possible.
|
||||||
|
|
|
||||||
6
irc9.c
6
irc9.c
|
|
@ -2845,10 +2845,10 @@ static void draw_tree(void)
|
||||||
if (treew > 3) {
|
if (treew > 3) {
|
||||||
terminal_move(y, 1);
|
terminal_move(y, 1);
|
||||||
fputs(w == curwin ? (terminal_color ? "\033[1;4m" : "\033[7m") : "\033[1m", stdout);
|
fputs(w == curwin ? (terminal_color ? "\033[1;4m" : "\033[7m") : "\033[1m", stdout);
|
||||||
putchar(s->connected ? '*' : ' ');
|
char marker = s->connected ? '*' : ' ';
|
||||||
if (s->tree_folded) putchar('+');
|
putchar(s->tree_folded ? '+' : marker);
|
||||||
long long unread = server_unread_messages(s);
|
long long unread = server_unread_messages(s);
|
||||||
int columns = treew - 3 - s->tree_folded;
|
int columns = treew - 3;
|
||||||
char count[32] = "";
|
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;
|
if (count_width > columns) count_width = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue