From 42673a84741eec6dbc7c0a5b36b0704035eb08ec Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 25 Aug 2011 00:57:56 +0200 Subject: [PATCH] Fix scroll_wrap logic on first and last page. (Closes #52) Thanks egl209 for the patch. --- zathura.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index e8baab2..b54e646 100644 --- a/zathura.c +++ b/zathura.c @@ -2320,7 +2320,7 @@ sc_scroll(Argument* argument) Argument arg; arg.n = PREVIOUS; sc_navigate(&arg); - if (!scroll_wrap || (Zathura.PDF.page_number < old_page)) + if (scroll_wrap || (Zathura.PDF.page_number < old_page)) { arg.n = BOTTOM; ss = TRUE;