From bf2ef335f90acbda42d54876caed21023fbdcdd8 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 16 Apr 2022 15:37:52 +1000 Subject: [PATCH] missed a spot --- gui.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui.go b/gui.go index 1cd005d..2539aa7 100644 --- a/gui.go +++ b/gui.go @@ -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 }