commit - f633507b362ca599e3acba01e7c62deead38661e
commit + b295e71b3c81b0a074917912ac548dbc9622d3da
blob - 79e24e9e42edc1931a96b10b382d790ec306a6d5
blob + d645055440d6084b256160371fee861901964d9e
--- tog/tog.c
+++ tog/tog.c
}
static const struct got_error *
-scroll_down(struct commit_queue_entry **first_displayed_entry, int maxscroll,
+scroll_down(struct tog_view *view,
+ struct commit_queue_entry **first_displayed_entry, int maxscroll,
struct commit_queue_entry **last_displayed_entry,
struct commit_queue *commits, int *log_complete, int *commits_needed,
pthread_cond_t *need_commits)
pentry = TAILQ_NEXT(*last_displayed_entry, entry);
if (pentry == NULL && !*log_complete) {
*commits_needed = maxscroll;
+
+ /* Redraw screen for "loading..." message. */
+ err = show_log_view(view);
+ if (err)
+ return err;
+ update_panels();
+ doupdate();
+
while (*commits_needed > 0) {
int errcode;
errcode = pthread_cond_signal(need_commits);
s->selected++;
break;
}
- err = scroll_down(&s->first_displayed_entry, 1,
+ err = scroll_down(view, &s->first_displayed_entry, 1,
&s->last_displayed_entry, &s->commits,
&s->thread_args.log_complete,
&s->thread_args.commits_needed,
first = s->first_displayed_entry;
if (first == NULL)
break;
- err = scroll_down(&s->first_displayed_entry,
+ err = scroll_down(view, &s->first_displayed_entry,
view->nlines, &s->last_displayed_entry,
&s->commits, &s->thread_args.log_complete,
&s->thread_args.commits_needed,