Commit Diff


commit - 359bfafdf181ae248b2c7fdcaa286027d91d5729
commit + 08ebd0a9f5d5a9edabba87ffcc06cb3552d3ed25
blob - 7c74aca307c8352acd0cfcb8c36a8bc33bcc4d7a
blob + e25786c706e17906e94edc3fa9e5fa0dd441e057
--- tog/tog.c
+++ tog/tog.c
@@ -1297,7 +1297,11 @@ scroll_down(struct commit_queue_entry **first_displaye
 
 	pentry = TAILQ_NEXT(*last_displayed_entry, entry);
 	if (pentry == NULL && !*log_complete) {
-		(*commits_needed) += maxscroll;
+		/*
+		 * Ask the log thread for required amount of commits
+		 * plus some amount of pre-fetching.
+		 */
+		(*commits_needed) += maxscroll + 20;
 		err = trigger_log_thread(0, commits_needed, log_complete,
 		    need_commits);
 		if (err)