add comment for jumpdown - scroll - scrollbackbuffer program for st
(HTM) git clone git://git.suckless.org/scroll
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8bcfdd94e2c7e29fe4db0de4e6d073c61d647179
(DIR) parent ba4826d4ce5010706d36bcf586defc62511d3c03
(HTM) Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Sun, 12 Apr 2020 23:36:42 +0200
add comment for jumpdown
Diffstat:
M scroll.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) 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);