commit 8bcfdd94e2c7e29fe4db0de4e6d073c61d647179
Author: Jan Klemkow <[email protected]>
AuthorDate: Sun Apr 12 23:36:42 2020 +0200
Commit: Jan Klemkow <[email protected]>
CommitDate: Sun Apr 12 23:36:42 2020 +0200
add comment for jumpdown
diff --git a/scroll.c b/scroll.c
index 2c28b31..4a82bde 100644
--- a/scroll.c
+++ b/scroll.c
@@ -360,6 +360,7 @@ jumpdown(char *buf, size_t size)
{
int rows = ws.ws_row;
+ /* wind back by one page starting from the latest line */
bottom = TAILQ_FIRST(&head);
for (; TAILQ_NEXT(bottom, entries) != NULL && rows > 0; rows--)
bottom = TAILQ_NEXT(bottom, entries);