diff options
author | hut <hut@lavabit.com> | 2010-01-01 23:17:31 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-01 23:17:31 +0100 |
commit | 2f6a77abaeebc8c660dc57db71e025f95a82cf04 (patch) | |
tree | c4f288c9db8e39f764e3f04a495bcb620e636676 /ranger | |
parent | 63f22638265680d87269a3493097ee3486a3b259 (diff) | |
download | ranger-2f6a77abaeebc8c660dc57db71e025f95a82cf04.tar.gz |
pager: fixed G key
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/pager.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |