Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Marwan Tanager 2013-10-26 00:56:30 +02:00 committed by Sebastian Ramacher
parent 834bc8f4c9
commit cba5d8df77

View File

@ -971,7 +971,7 @@ sc_search(girara_session_t* session, girara_argument_t* argument,
continue; continue;
} }
if (first_time_after_abort == true && num_search_results > 0) { if ((first_time_after_abort == true && num_search_results > 0) || ((tmp + num_pages) % num_pages != cur_page)) {
target_page = page; target_page = page;
target_idx = diff == 1 ? 0 : num_search_results - 1; target_idx = diff == 1 ? 0 : num_search_results - 1;
break; break;