Commit Diff


commit - 3e13595003634037ff26696ce7a32545721bfc24
commit + 0bf7f15321b5345c5f024cd18cede1959da68873
blob - dcec3b8db7f80bdbe871e35ab38c736bbfb705f6
blob + 7fbce6f00ea8ba6441c983e6bcd049840196dce6
--- tog/tog.c
+++ tog/tog.c
@@ -2411,6 +2411,12 @@ input_log_view(struct tog_view **new_view, struct tog_
 			s->selected = view->nlines - 2;
 		if (s->selected > s->commits.ncommits - 1)
 			s->selected = s->commits.ncommits - 1;
+		if (s->commits.ncommits < view->nlines - 1 &&
+		    !s->thread_args.log_complete) {
+			s->thread_args.commits_needed += (view->nlines - 1) -
+			    s->commits.ncommits;
+			err = trigger_log_thread(view, 1);
+		}
 		break;
 	case KEY_ENTER:
 	case ' ':