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

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

Jochen Sprickerhof пре 5 година
родитељ
комит
34ac4273c0
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
 	}