mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Set Twitter Stats wrap to false (#745)
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
parent
bf85d4b144
commit
c6a10295c1
@ -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
|
||||
}
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user