From 03348ccbf5961b5ade420f7de43680473e4dadb1 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Thu, 19 May 2011 10:57:42 +0200 Subject: [PATCH] Fixed backwards searching --- zathura.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zathura.c b/zathura.c index 7adcf0c..370c589 100644 --- a/zathura.c +++ b/zathura.c @@ -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;