summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2021-07-14 00:03:27 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-07-14 11:40:38 +0200
commitb680d6ccd1d8223ceb353987457098d86b7909e0 (patch)
treef3b9b2ae14e83aa77d6fafee9c12ee72a1c144af /config.go
parentPrint the channel topic on join (diff)
ui: Introduce a vertical member list on channels
Also, fix the UI timeline clearing too much, as well as the status line. Also, remove the width in the editor and buffer list constructors. We were initializing them with wrong values, only to overwrite these values with correct ones later in Resize().
Diffstat (limited to 'config.go')
-rw-r--r--config.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/config.go b/config.go
index 10656f4..a2f70b9 100644
--- a/config.go
+++ b/config.go
@@ -58,10 +58,11 @@ type Config struct {
NoTypings bool `yaml:"no-typings"`
Mouse *bool
- Highlights []string
- OnHighlight string `yaml:"on-highlight"`
- NickColWidth int `yaml:"nick-column-width"`
- ChanColWidth int `yaml:"chan-column-width"`
+ Highlights []string
+ OnHighlight string `yaml:"on-highlight"`
+ NickColWidth int `yaml:"nick-column-width"`
+ ChanColWidth int `yaml:"chan-column-width"`
+ MemberColWidth int `yaml:"member-column-width"`
Colors struct {
Prompt Color
@@ -93,6 +94,9 @@ func ParseConfig(buf []byte) (cfg Config, err error) {
if cfg.ChanColWidth <= 0 {
cfg.ChanColWidth = 16
}
+ if cfg.MemberColWidth <= 0 {
+ cfg.MemberColWidth = 16
+ }
return
}