From 9b19e3ad054132fdab4062915f70122faaa5c163 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 22 May 2019 11:35:55 -0400 Subject: Show account wizard if no accounts configured --- lib/ui/textinput.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index ce443c39..3e7c12f8 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) } } -- cgit