Commit 5da4c0f8c9d650fb453e89ebf9a08883d6d6ecc1

Stefan Sperling 2018-05-09T20:34:11

fix upper limit of number of commits in log view

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 730c010..05264b3 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -384,7 +384,7 @@ show_log_view(struct got_object_id *start_id, struct got_repository *repo)
 	do {
 		if (refetch_commits) {
 			free_commits(&commits);
-			err = fetch_commits(&commits, obj, id, repo, LINES);
+			err = fetch_commits(&commits, obj, id, repo, LINES - 1);
 			refetch_commits = 0;
 			if (err)
 				goto done;