commit 2e76d8a7c48df35fbab843656f1c604c999ed71f from: Mikhail via: Mark Jamsek date: Fri Aug 11 09:57:43 2023 UTC tog: fix log view search infinite loop When the current matched and selected entry is the last loaded commit, we keep looping the same code path because search_entry is always NULL. Before poking the log thread for more commits, set search_entry to the currently selected commit, which is where the search resumes. Patch by Mikhail commit - 1050403b806ca85666ad4b6a9e83953fdbb5298a commit + 2e76d8a7c48df35fbab843656f1c604c999ed71f blob - 7da57bf9f6480d998efd8205b57ef7814af17182 blob + c4839d1c9023a068753142f189620d39826b0968 --- tog/tog.c +++ tog/tog.c @@ -3721,6 +3721,7 @@ search_next_log_view(struct tog_view *view) * allowing the main loop to make progress. Search * will resume at s->search_entry once we come back. */ + s->search_entry = s->selected_entry; s->thread_args.commits_needed++; return trigger_log_thread(view, 0); }