scroll

scrollbackbuffer program for st
git clone git://git.suckless.org//gitrepos
Log | Files | Refs

commit 88612294334b82e8b7b3e07e51023698a1025353
parent 1d70f1f7eb3445ad56a5b47539c567a1e75a0923
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date:   Wed, 25 Mar 2020 21:23:53 +0100

Only jump to last line if we scrolled up

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

diff --git a/scroll.c b/scroll.c @@ -364,7 +364,7 @@ main(int argc, char *argv[]) scrolldown(buf, pos); else if (write(mfd, &c, 1) == -1) die("write:"); - else { + else if (bottom != TAILQ_FIRST(&head)) { bottom = TAILQ_FIRST(&head); scrolldown(buf, pos); }