Commit Diff
- Commit:
49dff0bd5f1fb112f762312d655dc99d24358c7c
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- 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
- Actions:
- Patch | Tree
--- 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); }