URI: 
       Don't jumpdown if bottom is still in the window - scroll - scrollbackbuffer program for st
  HTML git clone git://git.suckless.org/scroll
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 1da493160967c4026ba2c20d1a0b1c5147e2ebf8
   DIR parent 4b23d03e3c8dcac58d48fc89c1bc84f5ce27b718
  HTML 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:
         M scroll.c                            |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR 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 */