1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Make the line wrap settings for the Textfile module configurable via the 'wrapText' setting

This commit is contained in:
Chris Cummer
2019-06-14 21:27:09 -07:00
parent 98f0d5fa4b
commit d9c362ee9f
4 changed files with 8 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *
widget.SetDisplayFunction(widget.display)
widget.View.SetWordWrap(true)
widget.View.SetWrap(true)
widget.View.SetWrap(settings.wrapText)
widget.KeyboardWidget.SetView(widget.View)
@@ -79,7 +79,7 @@ func (widget *Widget) display() {
text += widget.plainText()
}
widget.Redraw(title, text, true)
widget.Redraw(title, text, widget.settings.wrapText)
}
func (widget *Widget) fileName() string {