mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:35:59 +01:00
Set the adjustment mode to ZATHURA_ADJUST_INPUTBAR before displaying or following links.
This will not scroll the document when pressing 'f' or 'F', just to make the behavior consistent with activating the inputbar using ':'. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
cd381c813d
commit
8f695b8c52
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,7 @@ sc_display_link(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
|||
|
||||
/* ask for input */
|
||||
if (show_links) {
|
||||
zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_INPUTBAR);
|
||||
girara_dialog(zathura->ui.session, "Display link:", FALSE, NULL,
|
||||
(girara_callback_inputbar_activate_t) cb_sc_display_link,
|
||||
zathura->ui.session);
|
||||
|
@ -295,6 +296,7 @@ sc_follow(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
|||
|
||||
/* ask for input */
|
||||
if (show_links == true) {
|
||||
zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_INPUTBAR);
|
||||
girara_dialog(zathura->ui.session, "Follow link:", FALSE, NULL, (girara_callback_inputbar_activate_t) cb_sc_follow, zathura->ui.session);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue