From c0602b62bb3e097172e19f78a7429b8205acd799 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 1 Jan 2010 22:09:54 +0100 Subject: pager: fixed scrolling range --- ranger/gui/widgets/pager.py | 4 ++-- 1 file 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 -- cgit 1.4.1-2-gfad0