From 5f8630c515eee5b4e208212cfbeba332f93cba59 Mon Sep 17 00:00:00 2001 From: mizunooto Date: Sat, 10 Jun 2023 13:14:00 +0300 Subject: [PATCH] textarea -- fix nextUndo after SetText --- textarea.go | 1 + 1 file changed, 1 insertion(+) diff --git a/textarea.go b/textarea.go index 7a59db9..b4b8aae 100644 --- a/textarea.go +++ b/textarea.go @@ -385,6 +385,7 @@ func (t *TextArea) SetText(text string, cursorAtTheEnd bool) *TextArea { t.cursor.row, t.cursor.actualColumn, t.cursor.column = 0, 0, 0 t.cursor.pos = [3]int{1, 0, -1} t.undoStack = t.undoStack[:0] + t.nextUndo = 0 if len(text) > 0 { t.spans = append(t.spans, textAreaSpan{