commit bbdc448cf73235f0f9a9c02b679c9e6e46bfc5fd
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Sun Apr 19 21:28:35 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Sun Apr 19 21:28:35 2020 +0200

    Don't scrollup if history is empty

diff --git a/scroll.c b/scroll.c
index d1e28c0..f5f79f7 100644
--- a/scroll.c
+++ b/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 */

Reply via email to