From 1b11a96302bd40244d43c374b433ce11f5d0321d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 25 May 2019 15:54:01 -0400 Subject: ensureScroll on text input frames --- lib/ui/textinput.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ui/textinput.go') diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index aa8be78..892646d 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -59,6 +59,8 @@ func (ti *TextInput) Draw(ctx *Context) { scroll := ti.scroll if !ti.focus { scroll = 0 + } else { + ti.ensureScroll() } ti.ctx = ctx // gross ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault) -- cgit 1.4.1-2-gfad0