mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-08 23:56:15 +02: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
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user