mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 22:32:59 +03:00
fix: include new line characters for Length()
This commit is contained in:
parent
84eacf535a
commit
47eee84147
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user