diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-06-11 19:52:21 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-06-11 19:52:21 -0400 |
commit | d67c8a60ef9a326ba7e2ff0b5755d8eba629d4eb (patch) | |
tree | 2d3084b91b5e8040be07bc5fd5c9606ade578f35 /lib/ui/ui.go | |
parent | 1c41b63f08d9b46ed558b0b3470cd2a2a9dfaf97 (diff) | |
download | aerc-d67c8a60ef9a326ba7e2ff0b5755d8eba629d4eb.tar.gz |
Clean up some old code
Diffstat (limited to 'lib/ui/ui.go')
-rw-r--r-- | lib/ui/ui.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/ui/ui.go b/lib/ui/ui.go index d3eacf29..8a390f3d 100644 --- a/lib/ui/ui.go +++ b/lib/ui/ui.go @@ -41,15 +41,18 @@ func Initialize(conf *config.AercConfig, tcEvents: make(chan tcell.Event, 10), invalidations: make(chan interface{}), } - //tb.SetOutputMode(tb.Output256) go (func() { for !state.Exit { state.tcEvents <- screen.PollEvent() } })() - go (func() { state.invalidations <- nil })() + go (func() { + state.invalidations <- nil + })() content.OnInvalidate(func(_ Drawable) { - go (func() { state.invalidations <- nil })() + go (func() { + state.invalidations <- nil + })() }) return &state, nil } |