Procházet zdrojové kódy

Don't reprint scroll down if we are at the bottom

Jochen Sprickerhof před 5 roky
rodič
revize
34ac4273c0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -280,7 +280,7 @@ scrolldown(char *buf, size_t size)
 		bottom = TAILQ_PREV(bottom, tailhead, entries);
 		write(STDOUT_FILENO, bottom->buf, bottom->size);
 	}
-	if (bottom == TAILQ_FIRST(&head)) {
+	if (rows < ws.ws_row && bottom == TAILQ_FIRST(&head)) {
 		write(STDOUT_FILENO, "\033[?25h", 6);
 		write(STDOUT_FILENO, buf, size);
 	}