Explorar el Código

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

Jochen Sprickerhof hace 5 años
padre
commit
34ac4273c0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 	}