From 721ed3248e8bf167a89df14d9fc2bf5b0fe45753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Sun, 12 Aug 2018 02:45:35 +0200 Subject: [PATCH] termui: fix scroll bug --- termui/show_bug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termui/show_bug.go b/termui/show_bug.go index ab0fd472..c0896e08 100644 --- a/termui/show_bug.go +++ b/termui/show_bug.go @@ -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 {