scroll

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

commit 1da493160967c4026ba2c20d1a0b1c5147e2ebf8
parent 4b23d03e3c8dcac58d48fc89c1bc84f5ce27b718
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date:   Fri, 17 Apr 2020 22:49:40 +0200

Don't jumpdown if bottom is still in the window

Diffstat:
Mscroll.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/scroll.c b/scroll.c @@ -357,6 +357,9 @@ scrolldown(char *buf, size_t size, int n) void jumpdown(char *buf, size_t size) { + if (bottom == NULL || bottom == TAILQ_FIRST(&head)) + return; + int rows = ws.ws_row; /* wind back by one page starting from the latest line */