Some clarifications.

This commit is contained in:
Oliver 2022-12-12 16:08:47 +01:00
parent 55d1ca9d33
commit 19d943d595
1 changed files with 3 additions and 1 deletions

View File

@ -395,7 +395,9 @@ func (t *TextView) SetTextStyle(style tcell.Style) *TextView {
}
// SetText sets the text of this text view to the provided string. Previously
// contained text will be removed.
// contained text will be removed. As with writing to the text view io.Writer
// interface directly, this does not trigger an automatic redraw but it will
// trigger the "changed" callback if one is set.
func (t *TextView) SetText(text string) *TextView {
batch := t.BatchWriter()
defer batch.Close()