mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
use view line height to see if you should stop scrolling
This commit is contained in:
parent
bd79c2e8dc
commit
77a82e9d51
|
|
@ -265,7 +265,7 @@ func (gui *Gui) scrollDownView(viewName string) error {
|
|||
y += sy
|
||||
}
|
||||
scrollHeight := gui.Config.GetUserConfig().GetInt("gui.scrollHeight")
|
||||
if y < len(mainView.BufferLines()) {
|
||||
if y < mainView.LinesHeight() {
|
||||
if err := mainView.SetOrigin(ox, oy+scrollHeight); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue