Explorar o código

Don't jumpdown if bottom is still in the window

Jochen Sprickerhof %!s(int64=6) %!d(string=hai) anos
pai
achega
1da4931609
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      scroll.c

+ 3 - 0
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 */