mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
used ViewLinesHeight for scrolling down function #31
This commit is contained in:
parent
19dac181cf
commit
082034d345
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ func (gui *Gui) scrollDownMain(g *gocui.Gui, v *gocui.View) error {
|
||||||
|
|
||||||
_, sizeY := mainView.Size()
|
_, sizeY := mainView.Size()
|
||||||
scrollCount := gui.Config.UserConfig.Gui.ScrollHeight
|
scrollCount := gui.Config.UserConfig.Gui.ScrollHeight
|
||||||
totalLines := mainView.LinesHeight()
|
totalLines := mainView.ViewLinesHeight()
|
||||||
if oy+sizeY >= totalLines {
|
if oy+sizeY >= totalLines {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue