diff options
author | delthas <delthas@dille.cc> | 2021-07-14 00:03:27 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-07-14 11:40:38 +0200 |
commit | b680d6ccd1d8223ceb353987457098d86b7909e0 (patch) | |
tree | f3b9b2ae14e83aa77d6fafee9c12ee72a1c144af /config.go | |
parent | Print 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.go | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 } |