Explorar o código

Don't scrollup if history is empty

Jochen Sprickerhof %!s(int64=5) %!d(string=hai) anos
pai
achega
bbdc448cf7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 */