used ViewLinesHeight for scrolling down function #31

This commit is contained in:
winhung 2019-08-04 11:07:48 +08:00
parent 19dac181cf
commit 082034d345

View file

@ -25,7 +25,7 @@ func (gui *Gui) scrollDownMain(g *gocui.Gui, v *gocui.View) error {
_, sizeY := mainView.Size()
scrollCount := gui.Config.UserConfig.Gui.ScrollHeight
totalLines := mainView.LinesHeight()
totalLines := mainView.ViewLinesHeight()
if oy+sizeY >= totalLines {
return nil
}