From 19d943d5954339a6e74c4807af72fb646b006875 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Mon, 12 Dec 2022 16:08:47 +0100 Subject: [PATCH] Some clarifications. --- textview.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/textview.go b/textview.go index 1857ccb..16bec9b 100644 --- a/textview.go +++ b/textview.go @@ -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()