From 6bee135317f32c71445c12bda7c8dd0586de44fc Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Sun, 25 Sep 2022 08:27:10 +0200 Subject: [PATCH] Add a comment --- m/scrollPosition.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m/scrollPosition.go b/m/scrollPosition.go index 6cdfa3f..d16445c 100644 --- a/m/scrollPosition.go +++ b/m/scrollPosition.go @@ -294,6 +294,8 @@ func (p *Pager) isScrolledToEnd() bool { return false } + // Last line is on screen, now we need to figure out whether we can see all + // of it lastInputLine := p.reader.GetLine(lastInputLineNumberOneBased) lastInputLineRendered := p.renderLine(lastInputLine, lastInputLineNumberOneBased) lastRenderedSubLine := lastInputLineRendered[len(lastInputLineRendered)-1]