From 9f201f4a1ff60290e1978302f92c39c08bb97d39 Mon Sep 17 00:00:00 2001 From: Abdo Roig-Maranges Date: Wed, 30 Oct 2013 12:46:10 +0100 Subject: [PATCH] need to set the page number before the position In the case we want to automatically set the position by by passing -1 to position_set, we better tell it the page before. Signed-off-by: Sebastian Ramacher --- links.c | 1 + 1 file changed, 1 insertion(+) diff --git a/links.c b/links.c index 085fcaa..20915d9 100644 --- a/links.c +++ b/links.c @@ -184,6 +184,7 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link) /* move to position */ zathura_jumplist_add(zathura); + zathura_document_set_current_page_number(zathura->document, link->target.page_number); position_set(zathura, pos_x, pos_y); zathura_jumplist_add(zathura); }