mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 18:23:08 +03:00
termui: fix scroll bug
This commit is contained in:
parent
53a3d5e113
commit
721ed3248e
@ -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 {
|
func (sb *showBug) scrollDown(g *gocui.Gui, v *gocui.View) error {
|
||||||
_, maxY := v.Size()
|
_, maxY := v.Size()
|
||||||
|
|
||||||
lastViewName := sb.childViews[len(sb.childViews)-1]
|
lastViewName := sb.mainSelectableView[len(sb.mainSelectableView)-1]
|
||||||
|
|
||||||
lastView, err := g.View(lastViewName)
|
lastView, err := g.View(lastViewName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user