From 7a69902269dcd8c372d3b92b064122ce87f24308 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Sat, 30 Dec 2017 22:09:36 +0100 Subject: [PATCH] Non-scrollable text views must track end. --- textview.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/textview.go b/textview.go index 6879b7a..6c87fd5 100644 --- a/textview.go +++ b/textview.go @@ -187,6 +187,9 @@ func NewTextView() *TextView { // scollable. If true, text is kept in a buffer and can be navigated. func (t *TextView) SetScrollable(scrollable bool) *TextView { t.scrollable = scrollable + if !scrollable { + t.trackEnd = true + } return t }