Procházet zdrojové kódy

Fix scrollup beyond last entry

Jochen Sprickerhof před 5 roky
rodič
revize
6095bf7ae4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 	}