commit - f66c734c57ba39774198d381b7f9a27cfdd30abe
commit + 1cae65b4629cd43c265d27e7aa98d478878b1ea5
blob - 4176e44478d59bb228fc0b7373935cf136d2b289
blob + 6752a4435be9e961ae88c997e52c023d8c82d1e5
--- tog/tog.c
+++ tog/tog.c
&s->commits, &s->thread_args.log_complete,
&s->thread_args.commits_needed,
&s->thread_args.need_commits);
+ if (err)
+ break;
if (first == s->first_displayed_entry &&
s->selected < MIN(view->nlines - 2,
s->commits.ncommits - 1)) {
err = format_line(&wline, &width, line, view->ncols, 0);
free(line);
line = NULL;
+ if (err)
+ return err;
if (view_needs_focus_indication(view))
wstandout(view->window);
waddwstr(view->window, wline);