scroll

scroll
git clone git@git.zachrice.app:repos/scroll.git
Log | Files | Refs | README | LICENSE

commit bbdc448cf73235f0f9a9c02b679c9e6e46bfc5fd
parent d5a014f1bdb047b6fbfa34e4e2354f121033aeff
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date:   Sun, 19 Apr 2020 21:28:35 +0200

Don't scrollup if history is empty

Diffstat:
Mscroll.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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 */