commit d2c172746f7e32f0649b60375e77ec77363ca7df from: Stefan Sperling via: Thomas Adam date: Fri Sep 23 11:16:31 2022 UTC Make & command in tog's log view display "searching..." while loading commits. This command acts like a search operation, and the display should reflect that. commit - 6d054bb9e38d22dc37c9141e75db6b8b9cd7ca9b commit + d2c172746f7e32f0649b60375e77ec77363ca7df blob - e00793004d00d3d61c9b0adc48e16e476bb9c46a blob + 2792c3740dd58afc9e951445558de0ce93ca305f --- tog/tog.c +++ tog/tog.c @@ -2469,8 +2469,8 @@ draw_commits(struct tog_view *view) if (s->thread_args.commits_needed > 0 || s->thread_args.load_all) { if (asprintf(&ncommits_str, " [%d/%d] %s", entry ? entry->idx + 1 : 0, s->commits->ncommits, - (view->searching && !view->search_next_done) ? - "searching..." : "loading...") == -1) { + (view->searching && !view->search_next_done) || + s->limit_view ? "searching..." : "loading...") == -1) { err = got_error_from_errno("asprintf"); goto done; }