summary refs log tree commit diff stats
path: root/lib/ui/textinput.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-25 15:54:01 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-25 15:54:01 -0400
commit1b11a96302bd40244d43c374b433ce11f5d0321d (patch)
tree7a92138c77972139b5f9194537838a073fb26ac1 /lib/ui/textinput.go
parent9947ea125cdaed1de336ba939d63d8ecd7b313ea (diff)
downloadaerc-1b11a96302bd40244d43c374b433ce11f5d0321d.tar.gz
ensureScroll on text input frames
Diffstat (limited to 'lib/ui/textinput.go')
-rw-r--r--lib/ui/textinput.go2
1 files changed, 2 insertions, 0 deletions
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)