termui: fix scroll bug

This commit is contained in:
Michael Muré 2018-08-12 02:45:35 +02:00
parent 53a3d5e113
commit 721ed3248e
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -443,7 +443,7 @@ func (sb *showBug) scrollUp(g *gocui.Gui, v *gocui.View) error {
func (sb *showBug) scrollDown(g *gocui.Gui, v *gocui.View) error {
_, maxY := v.Size()
lastViewName := sb.childViews[len(sb.childViews)-1]
lastViewName := sb.mainSelectableView[len(sb.mainSelectableView)-1]
lastView, err := g.View(lastViewName)
if err != nil {