missed a spot

This commit is contained in:
Jesse Duffield 2022-04-16 15:37:52 +10:00
parent 46492ecf92
commit bf2ef335f9

4
gui.go
View File

@ -786,6 +786,10 @@ func calcRealScrollbarStartEnd(v *View) (bool, int, int) {
height := v.InnerHeight() + 1 - v.scrollMargin()
fullHeight := v.ViewLinesHeight()
if v.CanScrollPastBottom {
fullHeight += height
}
if height < 2 || height >= fullHeight {
return false, 0, 0
}