diff --git a/textarea/textarea.go b/textarea/textarea.go index 5a080c8..6cdbffe 100644 --- a/textarea/textarea.go +++ b/textarea/textarea.go @@ -286,7 +286,7 @@ func (m *Model) Length() int { for _, row := range m.value { l += rw.StringWidth(string(row)) } - return l + return l + len(m.value) - 1 } // Line returns the line position.