Commit cba5d8df authored by Marwan Tanager's avatar Marwan Tanager Committed by Sebastian Ramacher
Browse files
parent 834bc8f4
...@@ -971,7 +971,7 @@ sc_search(girara_session_t* session, girara_argument_t* argument, ...@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment