Commit e50ee4f171a89e7c2cbf7988bbe421bee81ab36e

Stefan Sperling 2018-05-10T14:52:46

always scroll down by a full page during page-down scroll

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/tog/tog.c b/tog/tog.c
index aee813b..d59f7f1 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -640,9 +640,8 @@ show_log_view(struct got_object_id *start_id, struct got_repository *repo)
 					selected = nparents - 1;
 					break;
 				}
-				err = scroll_down(&first_displayed_entry,
-				    MIN(nparents, LINES), last_displayed_entry,
-				    &commits, repo);
+				err = scroll_down(&first_displayed_entry, LINES,
+				    last_displayed_entry, &commits, repo);
 				if (err)
 					goto done;
 				nparents = num_parents(first_displayed_entry);