Don't scrollup if history is empty - scroll - scrollbackbuffer program for st
 (HTM) git clone git://git.suckless.org/scroll
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit bbdc448cf73235f0f9a9c02b679c9e6e46bfc5fd
 (DIR) parent d5a014f1bdb047b6fbfa34e4e2354f121033aeff
 (HTM) Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
       Date:   Sun, 19 Apr 2020 21:28:35 +0200
       
       Don't scrollup if history is empty
       
       Diffstat:
         M scroll.c                            |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git 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 */