commit bec1249f5f66253017cfccd69009c32889696afd parent dfb4d933d9fa99fe9f58bb2f5f35662518077755 Author: Jochen Sprickerhof <git@jochen.sprickerhof.de> Date: Wed, 25 Mar 2020 22:05:59 +0100 Don't die if there is no buffer in scrollup Diffstat:
M | scroll.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scroll.c b/scroll.c @@ -248,7 +248,7 @@ scrollup(void) int rows = 0; /* wind back bottom pointer by two pages */ - for (; TAILQ_NEXT(bottom, entries) != NULL && rows < 2 * ws.ws_row; rows++) + for (; bottom != NULL && TAILQ_NEXT(bottom, entries) != NULL && rows < 2 * ws.ws_row; rows++) bottom = TAILQ_NEXT(bottom, entries); if (rows <= ws.ws_row) {