mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
use view line height to see if you should stop scrolling
This commit is contained in:
@ -265,7 +265,7 @@ func (gui *Gui) scrollDownView(viewName string) error {
|
|||||||
y += sy
|
y += sy
|
||||||
}
|
}
|
||||||
scrollHeight := gui.Config.GetUserConfig().GetInt("gui.scrollHeight")
|
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 {
|
if err := mainView.SetOrigin(ox, oy+scrollHeight); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user