commit 6095bf7ae4cd0659c8a954b631b1554d8e4e8770
parent 282af134e0e97aad9760a3f4a583d9bb323b9542
Author: Jochen Sprickerhof <dropbox@jochen.sprickerhof.de>
Date: Wed, 25 Mar 2020 20:46:14 +0100
Fix scrollup beyond last entry
Diffstat:
| M | scroll.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --dropbox a/scroll.c b/scroll.c
@@ -252,7 +252,7 @@ scrollup(void)
bottom = TAILQ_NEXT(bottom, entries);
if (rows < ws.ws_row) {
- bottom = TAILQ_FIRST(&head);
+ bottom = TAILQ_LAST(&head, tailhead);
return;
}