Преглед на файлове

Don't die if scrollback is empty

Jochen Sprickerhof преди 5 години
родител
ревизия
5fbd1cc536
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -250,7 +250,7 @@ scrollup(void)
 	int rows = 0, start = 0;
 
 	/* account for last line */
-	if(TAILQ_PREV(bottom, tailhead, entries) == NULL)
+	if(bottom != NULL && TAILQ_PREV(bottom, tailhead, entries) == NULL)
 		start = 1;
 
 	/* wind back bottom pointer by two pages */