about summary refs log tree commit diff stats
path: root/lib/ui/textinput.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/textinput.go')
-rw-r--r--lib/ui/textinput.go2
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)
 	}
 }