fix(textarea): reset real cursor position on Reset

This commit is contained in:
Ayman Bagabas
2024-11-13 13:13:55 -05:00
parent 8c3085a6cd
commit c350e79209
+2
View File
@@ -629,6 +629,8 @@ func (m *Model) Reset() {
m.value = make([][]rune, minHeight, startCap)
m.col = 0
m.row = 0
m.realCol = 0
m.realRow = 0
m.viewport.GotoTop()
m.SetCursor(0)
}