mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 21:55:59 +01:00
Update current page when following links.
This commit is contained in:
parent
0ad59d39d7
commit
16dd45ffe6
1 changed files with 4 additions and 0 deletions
4
links.c
4
links.c
|
@ -135,6 +135,8 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zathura_document_set_current_page_number(zathura->document, link->target.page_number);
|
||||||
|
|
||||||
/* get page offset */
|
/* get page offset */
|
||||||
page_offset_t offset;
|
page_offset_t offset;
|
||||||
page_calculate_offset(zathura, page, &offset);
|
page_calculate_offset(zathura, page, &offset);
|
||||||
|
@ -148,6 +150,8 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link)
|
||||||
}
|
}
|
||||||
|
|
||||||
position_set_delayed(zathura, offset.x, offset.y);
|
position_set_delayed(zathura, offset.x, offset.y);
|
||||||
|
statusbar_page_number_update(zathura);
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue