Browse Source

Only jump to last line if we scrolled up

Jochen Sprickerhof 5 years ago
parent
commit
8861229433
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scroll.c

+ 1 - 1
scroll.c

@@ -364,7 +364,7 @@ main(int argc, char *argv[])
 				scrolldown(buf, pos);
 			else if (write(mfd, &c, 1) == -1)
 				die("write:");
-			else {
+			else if (bottom != TAILQ_FIRST(&head)) {
 				bottom = TAILQ_FIRST(&head);
 				scrolldown(buf, pos);
 			}