commit 8bcfdd94e2c7e29fe4db0de4e6d073c61d647179
parent ba4826d4ce5010706d36bcf586defc62511d3c03
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Sun, 12 Apr 2020 23:36:42 +0200
add comment for jumpdown
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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);