Преглед на файлове

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