From be8b8f3bb74c8bbd2716b586a0d70b17ca70d7bd Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sat, 25 Feb 2012 23:54:38 +0100 Subject: [PATCH] Revert latest commit --- shortcuts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts.c b/shortcuts.c index 0a1d16f..3b5780a 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -520,7 +520,7 @@ sc_search(girara_session_t* session, girara_argument_t* argument, for (int npage_id = 1; page_id < num_pages; ++npage_id) { int ntmp = cur_page + diff * (page_id + npage_id); zathura_page_t* npage = zathura->document->pages[(ntmp + 2*num_pages) % num_pages]; - zathura->global.update_page_number = true; + zathura->document->current_page_number = npage->number; g_object_get(npage->drawing_area, "search-length", &num_search_results, NULL); if (num_search_results != 0) { target_page = npage;