Просмотр исходного кода

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

Jochen Sprickerhof 5 лет назад
Родитель
Сommit
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);
 	}