commit 5fbd1cc536b0efae2e0dcec8515e8c6e7082b772
parent 827324d84bae7fc8313c7d14f70c900ffb13110f
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Tue, 31 Mar 2020 21:55:55 +0200
Don't die if scrollback is empty
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scroll.c b/scroll.c
@@ -250,7 +250,7 @@ scrollup(void)
int rows = 0, start = 0;
/* account for last line */
- if(TAILQ_PREV(bottom, tailhead, entries) == NULL)
+ if(bottom != NULL && TAILQ_PREV(bottom, tailhead, entries) == NULL)
start = 1;
/* wind back bottom pointer by two pages */