mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-07 14:55:59 +01:00
Fixed backwards searching
This commit is contained in:
parent
ad05f0058b
commit
03348ccbf5
1 changed files with 4 additions and 4 deletions
|
@ -1869,6 +1869,10 @@ search(void* parameter)
|
||||||
|
|
||||||
if(argument->n != NO_SEARCH)
|
if(argument->n != NO_SEARCH)
|
||||||
{
|
{
|
||||||
|
/* search document */
|
||||||
|
if(argument->n)
|
||||||
|
direction = (argument->n == BACKWARD) ? -1 : 1;
|
||||||
|
|
||||||
if(argument->data)
|
if(argument->data)
|
||||||
{
|
{
|
||||||
if(search_item)
|
if(search_item)
|
||||||
|
@ -1898,10 +1902,6 @@ search(void* parameter)
|
||||||
Zathura.Search.results = NULL;
|
Zathura.Search.results = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* search document */
|
|
||||||
if(argument->n)
|
|
||||||
direction = (argument->n == BACKWARD) ? -1 : 1;
|
|
||||||
|
|
||||||
Zathura.Search.query = g_strdup(search_item);
|
Zathura.Search.query = g_strdup(search_item);
|
||||||
|
|
||||||
int number_of_pages = Zathura.PDF.number_of_pages;
|
int number_of_pages = Zathura.PDF.number_of_pages;
|
||||||
|
|
Loading…
Reference in a new issue