mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:05:59 +01:00
Mistake in the search function
Corrected a little mistake in the search function so that it does not start the search on the current page
This commit is contained in:
parent
c7ae813201
commit
ad897d2c65
1 changed files with 1 additions and 1 deletions
|
@ -792,7 +792,7 @@ search(void* parameter)
|
||||||
if(argument->n)
|
if(argument->n)
|
||||||
direction = (argument->n == BACKWARD) ? -1 : 1;
|
direction = (argument->n == BACKWARD) ? -1 : 1;
|
||||||
|
|
||||||
for(page_counter = 0; page_counter < Zathura.PDF.number_of_pages; page_counter++)
|
for(page_counter = 1; page_counter <= Zathura.PDF.number_of_pages; page_counter++)
|
||||||
{
|
{
|
||||||
next_page = (Zathura.PDF.number_of_pages + Zathura.PDF.page_number +
|
next_page = (Zathura.PDF.number_of_pages + Zathura.PDF.page_number +
|
||||||
page_counter * direction) % Zathura.PDF.number_of_pages;
|
page_counter * direction) % Zathura.PDF.number_of_pages;
|
||||||
|
|
Loading…
Reference in a new issue