diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-01 13:03:26 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-01 13:03:26 +0200 |
commit | 328a23e10f35bea78df63fe46041d581d89fe79d (patch) | |
tree | ea604a1da4ac39cf5b94464c8faf7fc5e607dede | |
parent | Channel list is horizontal by default (diff) |
Don't show the member list by default
Diffstat (limited to '')
-rw-r--r-- | config.go | 4 | ||||
-rw-r--r-- | doc/senpai.5.scd | 3 | ||||
-rw-r--r-- | ui/ui.go | 4 |
3 files changed, 7 insertions, 4 deletions
@@ -94,8 +94,8 @@ func ParseConfig(buf []byte) (cfg Config, err error) { if cfg.ChanColWidth < 0 { cfg.ChanColWidth = 0 } - if cfg.MemberColWidth <= 0 { - cfg.MemberColWidth = 16 + if cfg.MemberColWidth < 0 { + cfg.MemberColWidth = 0 } return } diff --git a/doc/senpai.5.scd b/doc/senpai.5.scd index a25c337..5658707 100644 --- a/doc/senpai.5.scd +++ b/doc/senpai.5.scd @@ -80,7 +80,8 @@ on-highlight: | cells. By default, the channel list is horizontal. *member-column-width* - The number of cells that the column for members occupies. By default, 16. + Show the list of channel members on the right of the screen, with a width + equals to the given amount of cells. *no-tls* Disable TLS encryption. Defaults to false. @@ -299,7 +299,9 @@ func (ui *UI) Draw(members []irc.Member) { } else { ui.bs.DrawVerticalBufferList(ui.screen, 0, 0, ui.config.ChanColWidth, h) } - ui.bs.DrawVerticalMemberList(ui.screen, w-ui.config.MemberColWidth, 0, ui.config.MemberColWidth, h, members, &ui.memberOffset) + if ui.config.MemberColWidth != 0 { + ui.bs.DrawVerticalMemberList(ui.screen, w-ui.config.MemberColWidth, 0, ui.config.MemberColWidth, h, members, &ui.memberOffset) + } if ui.config.ChanColWidth == 0 { ui.drawStatusBar(ui.config.ChanColWidth, h-3, w-ui.config.MemberColWidth) } else { |