Commit Diff
- Commit:
2e76d8a7c48df35fbab843656f1c604c999ed71f
- From:
- Mikhail <mp39590@gmail.com>
- Via:
- Mark Jamsek <mark@jamsek.dev>
- 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 @@ -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); }