mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 16:03:46 +01:00
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 <sebastian+dev@ramacher.at>
This commit is contained in:
parent
f10d847a95
commit
9f201f4a1f
1
links.c
1
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user