diff --git a/modules/twitterstats/widget.go b/modules/twitterstats/widget.go index bbf029cb..c13360b3 100644 --- a/modules/twitterstats/widget.go +++ b/modules/twitterstats/widget.go @@ -23,7 +23,7 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) * } widget.View.SetBorderPadding(1, 1, 1, 1) - widget.View.SetWrap(true) + widget.View.SetWrap(false) widget.View.SetWordWrap(true) return &widget @@ -55,5 +55,5 @@ func (widget *Widget) content() (string, string, bool) { ) } - return "Twitter Stats", str, true + return "Twitter Stats", str, false } diff --git a/view/text_widget.go b/view/text_widget.go index 176bda88..7aa94eb8 100644 --- a/view/text_widget.go +++ b/view/text_widget.go @@ -32,6 +32,7 @@ func (widget *TextWidget) TextView() *tview.TextView { func (widget *TextWidget) Redraw(data func() (string, string, bool)) { widget.app.QueueUpdateDraw(func() { title, content, wrap := data() + widget.View.Clear() widget.View.SetWrap(wrap) widget.View.SetTitle(widget.ContextualTitle(title))