소스 검색

Only jump to last line if we scrolled up

Jochen Sprickerhof 5 년 전
부모
커밋
8861229433
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
 			}