diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-22 11:35:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-22 11:35:55 -0400 |
commit | 9b19e3ad054132fdab4062915f70122faaa5c163 (patch) | |
tree | 4a41b871550f6fd692711a56aa9b2b7898c8c8f2 /lib | |
parent | 1a45b793c7d1d59e209be3eb4b4f794a78085e5d (diff) | |
download | aerc-9b19e3ad054132fdab4062915f70122faaa5c163.tar.gz |
Show account wizard if no accounts configured
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/textinput.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index ce443c3..3e7c12f 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -66,7 +66,7 @@ func (ti *TextInput) Draw(ctx *Context) { ctx.Printf(0, 0, tcell.StyleDefault, "%s%s", ti.prompt, string(ti.text)) } cells := runewidth.StringWidth(string(ti.text[:ti.index]) + ti.prompt) - if cells != ti.cells && ti.focus { + if ti.focus { ctx.SetCursor(cells, 0) } } |