diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-26 17:27:14 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-26 17:53:40 +0200 |
commit | 0495351b44cc7fc171c98cbcce57e966092ce6a1 (patch) | |
tree | 062866db03bec6f1fd85f76413283294943bde18 /ui/ui.go | |
parent | Update tcell and support italics (diff) |
Move ui.Home and ui.homeMessages up
Diffstat (limited to 'ui/ui.go')
-rw-r--r-- | ui/ui.go | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -1,7 +1,6 @@ package ui import ( - "math/rand" "sync/atomic" "time" @@ -51,17 +50,8 @@ func New(config Config) (ui *UI, err error) { ui.exit.Store(false) - hmIdx := rand.Intn(len(homeMessages)) ui.bs = NewBufferList(w, h, ui.config.NickColWidth) - ui.bs.Add(Home) - ui.bs.AddLine("", false, Line{ - At: time.Now(), - Head: "--", - Body: homeMessages[hmIdx], - }) - ui.e = NewEditor(w, ui.config.AutoComplete) - ui.Resize() return @@ -187,7 +177,6 @@ func (ui *UI) Resize() { w, h := ui.screen.Size() ui.e.Resize(w) ui.bs.Resize(w, h) - ui.Draw() } func (ui *UI) Draw() { |