mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 18:03:46 +01:00
Fixed backwards searching
This commit is contained in:
parent
ad05f0058b
commit
03348ccbf5
@ -1869,6 +1869,10 @@ search(void* parameter)
|
||||
|
||||
if(argument->n != NO_SEARCH)
|
||||
{
|
||||
/* search document */
|
||||
if(argument->n)
|
||||
direction = (argument->n == BACKWARD) ? -1 : 1;
|
||||
|
||||
if(argument->data)
|
||||
{
|
||||
if(search_item)
|
||||
@ -1898,10 +1902,6 @@ search(void* parameter)
|
||||
Zathura.Search.results = NULL;
|
||||
}
|
||||
|
||||
/* search document */
|
||||
if(argument->n)
|
||||
direction = (argument->n == BACKWARD) ? -1 : 1;
|
||||
|
||||
Zathura.Search.query = g_strdup(search_item);
|
||||
|
||||
int number_of_pages = Zathura.PDF.number_of_pages;
|
||||
|
Loading…
Reference in New Issue
Block a user