mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:55:59 +01:00
Fix issue 345 (http://bugs.pwmt.org/issue345)
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
834bc8f4c9
commit
cba5d8df77
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue