diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-12 02:45:35 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-12 02:45:35 +0200 |
commit | 721ed3248e8bf167a89df14d9fc2bf5b0fe45753 (patch) | |
tree | 56ce6b71ea5397925c2cba3aa8205e3b942c2b57 /termui/show_bug.go | |
parent | 53a3d5e11355ec6bed2e27bc26459a50e435b643 (diff) | |
download | git-bug-721ed3248e8bf167a89df14d9fc2bf5b0fe45753.tar.gz |
termui: fix scroll bug
Diffstat (limited to 'termui/show_bug.go')
-rw-r--r-- | termui/show_bug.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |