Introduction
Introduction Statistics Contact Development Disclaimer Help
Don't jumpdown if bottom is still in the window - scroll - scrollbackbuffer pro…
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit 1da493160967c4026ba2c20d1a0b1c5147e2ebf8
parent 4b23d03e3c8dcac58d48fc89c1bc84f5ce27b718
Author: Jochen Sprickerhof <[email protected]>
Date: Fri, 17 Apr 2020 22:49:40 +0200
Don't jumpdown if bottom is still in the window
Diffstat:
M scroll.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 */
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.