From d67c8a60ef9a326ba7e2ff0b5755d8eba629d4eb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 11 Jun 2018 19:52:21 -0400 Subject: Clean up some old code --- lib/ui/ui.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/ui/ui.go') diff --git a/lib/ui/ui.go b/lib/ui/ui.go index d3eacf2..8a390f3 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 } -- cgit v1.2.3