Explorar o código

add comment for jumpdown

Jan Klemkow %!s(int64=5) %!d(string=hai) anos
pai
achega
8bcfdd94e2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);