aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/ui.go')
-rw-r--r--lib/ui/ui.go9
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
}