commit 49dff0bd5f1fb112f762312d655dc99d24358c7c from: Mikhail via: Thomas Adam date: Sat Aug 12 11:13:46 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 - a6153ffb9ee91bb4fc544a98fae8d50cf2963841 commit + 49dff0bd5f1fb112f762312d655dc99d24358c7c blob - 3ae5dcd00f4ad172487b60b4703ae8ff8a9ecbe6 blob + 8ff70054ebddda064423a1c2a3f8908625d6bc0f --- tog/tog.c +++ tog/tog.c @@ -3725,6 +3725,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); }