mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-01-11 14:38:10 +03:00
Fix off-by-one error in viewport's GotoBottom()
This was most likely introduced by the fix for rendering final lines in
0ac5ecdf81
.
This commit is contained in:
parent
6c015a2aa8
commit
7a6d306889
@ -213,7 +213,7 @@ func (m *Model) GotoTop() (lines []string) {
|
|||||||
|
|
||||||
// GotoBottom sets the viewport to the bottom position.
|
// GotoBottom sets the viewport to the bottom position.
|
||||||
func (m *Model) GotoBottom() (lines []string) {
|
func (m *Model) GotoBottom() (lines []string) {
|
||||||
m.SetYOffset(len(m.lines) - 1 - m.Height)
|
m.SetYOffset(len(m.lines) - m.Height)
|
||||||
return m.visibleLines()
|
return m.visibleLines()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user