From 2f6a77abaeebc8c660dc57db71e025f95a82cf04 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 1 Jan 2010 23:17:31 +0100 Subject: pager: fixed G key --- ranger/gui/widgets/pager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py index 045fc345..d69d580e 100644 --- a/ranger/gui/widgets/pager.py +++ b/ranger/gui/widgets/pager.py @@ -63,7 +63,10 @@ class Pager(Widget): def move(self, relative=0, absolute=None, pages=False): i = self.scroll_begin if isinstance(absolute, int): - i = absolute + if absolute < 0: + i = absolute + len(self.lines) + else: + i = absolute if pages: i += relative * self.hei -- cgit 1.4.1-2-gfad0