summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-01 22:09:54 +0100
committerhut <hut@lavabit.com>2010-01-01 22:09:54 +0100
commitc0602b62bb3e097172e19f78a7429b8205acd799 (patch)
tree652d40614fc13a0e6409683453f8623a3d98e734 /ranger
parent75c3e884715b69e7771086a873606c1fafad7d0c (diff)
downloadranger-c0602b62bb3e097172e19f78a7429b8205acd799.tar.gz
pager: fixed scrolling range
Diffstat (limited to 'ranger')
-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