mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 20:33:46 +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
@ -792,7 +792,7 @@ search(void* parameter)
|
||||
if(argument->n)
|
||||
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 +
|
||||
page_counter * direction) % Zathura.PDF.number_of_pages;
|
||||
|
Loading…
Reference in New Issue
Block a user