Fix scroll_wrap logic on first and last page. (Closes #52)

Thanks egl209 for the patch.
This commit is contained in:
Sebastian Ramacher 2011-08-25 00:57:56 +02:00
parent 53c8420f8a
commit c190386f9e

View File

@ -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;