commit 328a23e
Hubert Hirtz
·
2021-09-01 11:03:26 +0000 UTC
parent 526eb96
Don't show the member list by default
3 files changed,
+7,
-4
+2,
-2
1@@ -94,8 +94,8 @@ func ParseConfig(buf []byte) (cfg Config, err error) {
2 if cfg.ChanColWidth < 0 {
3 cfg.ChanColWidth = 0
4 }
5- if cfg.MemberColWidth <= 0 {
6- cfg.MemberColWidth = 16
7+ if cfg.MemberColWidth < 0 {
8+ cfg.MemberColWidth = 0
9 }
10 return
11 }
+2,
-1
1@@ -80,7 +80,8 @@ on-highlight: |
2 cells. By default, the channel list is horizontal.
3
4 *member-column-width*
5- The number of cells that the column for members occupies. By default, 16.
6+ Show the list of channel members on the right of the screen, with a width
7+ equals to the given amount of cells.
8
9 *no-tls*
10 Disable TLS encryption. Defaults to false.
M
ui/ui.go
+3,
-1
1@@ -299,7 +299,9 @@ func (ui *UI) Draw(members []irc.Member) {
2 } else {
3 ui.bs.DrawVerticalBufferList(ui.screen, 0, 0, ui.config.ChanColWidth, h)
4 }
5- ui.bs.DrawVerticalMemberList(ui.screen, w-ui.config.MemberColWidth, 0, ui.config.MemberColWidth, h, members, &ui.memberOffset)
6+ if ui.config.MemberColWidth != 0 {
7+ ui.bs.DrawVerticalMemberList(ui.screen, w-ui.config.MemberColWidth, 0, ui.config.MemberColWidth, h, members, &ui.memberOffset)
8+ }
9 if ui.config.ChanColWidth == 0 {
10 ui.drawStatusBar(ui.config.ChanColWidth, h-3, w-ui.config.MemberColWidth)
11 } else {