Refactor redundant modification of default properties

This commit is contained in:
rigormorrtiss 2021-07-31 19:32:00 +04:00
parent b7de6b4d31
commit cc29b2426e

View file

@ -9,9 +9,7 @@ import (
func NewMessagesTextView(onMessagesTextViewChanged func(), theme *util.Theme) (messagesTextView *tview.TextView) {
messagesTextView = tview.NewTextView().
SetDynamicColors(true).
SetWrap(true).
SetWordWrap(true).
SetScrollable(true).
ScrollToEnd().
SetChangedFunc(onMessagesTextViewChanged)
messagesTextView.