Преглед изворни кода

Fix scrollup beyond last entry

Jochen Sprickerhof пре 5 година
родитељ
комит
6095bf7ae4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scroll.c

+ 1 - 1
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;
 	}