Browse Source

Don't scrollup if history is empty

Jochen Sprickerhof 5 years ago
parent
commit
bbdc448cf7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

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