Commit 23715508 authored by Felix Kaiser's avatar Felix Kaiser
Browse files

Make page mode toggling predictable

Previously, toggling page mode would jump to near page, but usually
not the one your were looking at before.
parent 6aa5420f
......@@ -1224,6 +1224,8 @@ sc_toggle_page_mode(girara_session_t* session, girara_argument_t*
return false;
unsigned int page_id = zathura_document_get_current_page_number(zathura->document);
int pages_per_row = 1;
girara_setting_get(zathura->ui.session, "pages-per-row", &pages_per_row);
......@@ -1237,6 +1239,10 @@ sc_toggle_page_mode(girara_session_t* session, girara_argument_t*
girara_setting_set(zathura->ui.session, "pages-per-row", &value);
page_set(zathura, page_id);
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment