Commit 7d294ef9 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Merge branch 'develop' into 'develop'

Fixed zathura going to first page when toggling index mode after using the inputbar

See merge request !40
parents f96451c9 da3c6d21
Pipeline #354 passed with stages
in 2 minutes and 1 second
......@@ -1212,6 +1212,14 @@ sc_toggle_index(girara_session_t* session, girara_argument_t* UNUSED(argument),
/* save current position to the jumplist */
const zathura_adjust_mode_t adjust_mode =
/* zathura goes to the first page when toggling index mode if this isn't done */
if (adjust_mode == ZATHURA_ADJUST_INPUTBAR) {
zathura_document_set_adjust_mode(zathura->document, ZATHURA_ADJUST_NONE);
girara_set_view(session, zathura->ui.index);
girara_mode_set(zathura->ui.session, zathura->modes.index);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment