summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/widgets/pager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index 2d77a2d0..045fc345 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -71,11 +71,11 @@ class Pager(Widget):
 			i += relative
 		i = int(i)
 
-		length = len(self.lines) - self.hei - 1
+		length = len(self.lines) - self.hei
 		if i >= length:
 			self._get_line(i+self.hei)
 
-		length = len(self.lines) - self.hei - 1
+		length = len(self.lines) - self.hei
 		if i >= length:
 			i = length