aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit d67c8a60ef9a326ba7e2ff0b5755d8eba629d4eb
parent 1c41b63f08d9b46ed558b0b3470cd2a2a9dfaf97
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 11 Jun 2018 19:52:21 -0400

Clean up some old code

Diffstat:
Mlib/ui/context.go | 7-------
Mlib/ui/ui.go | 9++++++---
2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/lib/ui/context.go b/lib/ui/context.go @@ -77,9 +77,6 @@ func (ctx *Context) Printf(x, y int, style tcell.Style, return y < height } for _, ch := range str { - if str == " こんにちは " { - fmt.Printf("%c\n", ch) - } switch ch { case '\n': if !newline() { @@ -102,10 +99,6 @@ func (ctx *Context) Printf(x, y int, style tcell.Style, return runewidth.StringWidth(str) } -//func (ctx *Context) Screen() tcell.Screen { -// return ctx.screen -//} - func (ctx *Context) Fill(x, y, width, height int, rune rune, style tcell.Style) { vp := views.NewViewPort(ctx.viewport, x, y, width, height) vp.Fill(rune, style) diff --git 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 }