Non-scrollable text views must track end.

This commit is contained in:
Oliver 2017-12-30 22:09:36 +01:00
parent 5555b22427
commit 7a69902269
1 changed files with 3 additions and 0 deletions

View File

@ -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
}