Commit f633507b362ca599e3acba01e7c62deead38661e

Stefan Sperling 2019-02-22T00:47:09

tog: disable arbitrary commit pre-fetching in scroll_down()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index bb6dc1a..79e24e9 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1258,7 +1258,7 @@ scroll_down(struct commit_queue_entry **first_displayed_entry, int maxscroll,
 	do {
 		pentry = TAILQ_NEXT(*last_displayed_entry, entry);
 		if (pentry == NULL && !*log_complete) {
-			*commits_needed = maxscroll + 20;
+			*commits_needed = maxscroll;
 			while (*commits_needed > 0) {
 				int errcode;
 				errcode = pthread_cond_signal(need_commits);