From 8f695b8c52a6b1edf29748be9acf91009cb3409b Mon Sep 17 00:00:00 2001 From: Marwan Tanager Date: Thu, 28 Mar 2013 04:01:43 +0200 Subject: [PATCH] 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 --- shortcuts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shortcuts.c b/shortcuts.c index 1de5ee6..04ec7e7 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -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); }