Commit 6518472d authored by Maxime Chéramy's avatar Maxime Chéramy

Fix scroll down and up in double-page mode.

parent a9d3d390
......@@ -385,8 +385,12 @@ sc_navigate(girara_session_t* session, girara_argument_t* argument,
}
}
if ((new_page < 0 || new_page >= number_of_pages) && !scroll_wrap) {
return false;
if (!scroll_wrap) {
if (new_page <= 0) {
new_page = 0;
} else if (new_page >= number_of_pages) {
new_page = number_of_pages - 1;
}
}
page_set(zathura, new_page);
......
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