Commit 03348ccb authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Fixed backwards searching

parent ad05f005
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment