Commit 7ca04879e263ade3c559033b1188538df6e62478

Stefan Sperling 2019-10-19T11:06:47

fix a tog log view performance bug when lots of commits are loaded

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tog/tog.c b/tog/tog.c
index 082650a..a83600d 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1404,6 +1404,7 @@ draw_commits(struct tog_view *view, struct commit_queue_entry **last,
 			author_cols = width;
 		free(wauthor);
 		free(author);
+		ncommits++;
 		entry = TAILQ_NEXT(entry, entry);
 	}