From 31c34fa453b05a6d5accc73e5476ed8dc31c4728 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 16 Feb 2015 11:49:35 +0000 Subject: [PATCH] Fix calculation of available next pages Closes #2509 --- html/js/melpa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/js/melpa.js b/html/js/melpa.js index 9dcab69d..12c7c1a7 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -189,7 +189,7 @@ Math.floor((this.windowSize() - 1) / 2)); }; this.nextPages = function() { - return _.first(_.range(this.pageNumber() + 1, this.maxPage()), + return _.first(_.range(this.pageNumber() + 1, 1 + this.maxPage()), this.windowSize() - 1 - this.prevPages().length); }; };