ソースを参照

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);