Procházet zdrojové kódy

Don't scrollup if history is empty

Jochen Sprickerhof před 5 roky
rodič
revize
bbdc448cf7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 */