mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 16:16:01 +01:00
Revert latest commit
This commit is contained in:
parent
6eb9db6cb6
commit
be8b8f3bb7
1 changed files with 1 additions and 1 deletions
|
@ -520,7 +520,7 @@ sc_search(girara_session_t* session, girara_argument_t* argument,
|
||||||
for (int npage_id = 1; page_id < num_pages; ++npage_id) {
|
for (int npage_id = 1; page_id < num_pages; ++npage_id) {
|
||||||
int ntmp = cur_page + diff * (page_id + npage_id);
|
int ntmp = cur_page + diff * (page_id + npage_id);
|
||||||
zathura_page_t* npage = zathura->document->pages[(ntmp + 2*num_pages) % num_pages];
|
zathura_page_t* npage = zathura->document->pages[(ntmp + 2*num_pages) % num_pages];
|
||||||
zathura->global.update_page_number = true;
|
zathura->document->current_page_number = npage->number;
|
||||||
g_object_get(npage->drawing_area, "search-length", &num_search_results, NULL);
|
g_object_get(npage->drawing_area, "search-length", &num_search_results, NULL);
|
||||||
if (num_search_results != 0) {
|
if (num_search_results != 0) {
|
||||||
target_page = npage;
|
target_page = npage;
|
||||||
|
|
Loading…
Reference in a new issue