diff --git a/textarea/textarea.go b/textarea/textarea.go index 5277736..51233da 100644 --- a/textarea/textarea.go +++ b/textarea/textarea.go @@ -466,10 +466,18 @@ func (m *Model) Reset() { } func (m *Model) ResetWithoutValue() { + m.ResetView() + m.ResetChanged() +} + +func (m *Model) ResetView() { m.col = 0 m.row = 0 m.viewport.GotoTop() m.SetCursor(0) +} + +func (m *Model) ResetChanged() { m.isChanged = false }