mirror of
				https://github.com/Maks1mS/bubbles.git
				synced 2025-11-03 23:21:22 +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:
		@@ -213,7 +213,7 @@ func (m *Model) GotoTop() (lines []string) {
 | 
			
		||||
 | 
			
		||||
// GotoBottom sets the viewport to the bottom position.
 | 
			
		||||
func (m *Model) GotoBottom() (lines []string) {
 | 
			
		||||
	m.SetYOffset(len(m.lines) - 1 - m.Height)
 | 
			
		||||
	m.SetYOffset(len(m.lines) - m.Height)
 | 
			
		||||
	return m.visibleLines()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user