Browse Source

Fix scrollup beyond last entry

Jochen Sprickerhof 5 years ago
parent
commit
6095bf7ae4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -252,7 +252,7 @@ scrollup(void)
 		bottom = TAILQ_NEXT(bottom, entries);
 		bottom = TAILQ_NEXT(bottom, entries);
 
 
 	if (rows < ws.ws_row) {
 	if (rows < ws.ws_row) {
-		bottom = TAILQ_FIRST(&head);
+		bottom = TAILQ_LAST(&head, tailhead);
 		return;
 		return;
 	}
 	}