소스 검색

add comment for jumpdown

Jan Klemkow 5 년 전
부모
커밋
8bcfdd94e2
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scroll.c

+ 1 - 0
scroll.c

@@ -360,6 +360,7 @@ jumpdown(char *buf, size_t size)
 {
 	int rows = ws.ws_row;
 
+	/* wind back by one page starting from the latest line */
 	bottom = TAILQ_FIRST(&head);
 	for (; TAILQ_NEXT(bottom, entries) != NULL && rows > 0; rows--)
 		bottom = TAILQ_NEXT(bottom, entries);