commit - 1144d21ac0a468b7d3893ec69f9329ff0d5391bc
commit + bcf2df4dedd660c46912750d9032412a2b7b7822
blob - 1e70527ac3eef705d5538c39dbe9e6be7834fec6
blob + ec46106ae099def1fcc64d956ad35d609379bdb8
--- tog/tog.c
+++ tog/tog.c
if (match_commit(entry->commit, &s->regex)) {
view->search_next_done = 1;
+ s->matched_entry = entry;
break;
}
if (view->searching == TOG_SEARCH_FORWARD)
entry = TAILQ_PREV(entry, commit_queue_head, entry);
}
- if (entry) {
+ if (s->matched_entry) {
int cur = s->selected_entry->idx;
- s->matched_entry = entry;
while (cur < s->matched_entry->idx) {
err = input_log_view(NULL, NULL, NULL, view, KEY_DOWN);
if (err)