소스 검색

Don't scrollup if history is empty

Jochen Sprickerhof 5 년 전
부모
커밋
bbdc448cf7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -304,7 +304,7 @@ scrollup(int n)
 
 	rows -= x;
 
-	if (rows <= 0)
+	if (scrollend == NULL || rows <= 0)
 		return;
 
 	/* move the text in terminal rows lines down */