commit 1da493160967c4026ba2c20d1a0b1c5147e2ebf8
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Fri Apr 17 22:49:40 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Fri Apr 17 22:49:40 2020 +0200

    Don't jumpdown if bottom is still in the window

diff --git a/scroll.c b/scroll.c
index 25bd3fc..7d3a651 100644
--- 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 */

Reply via email to