about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-01 23:17:31 +0100
committerhut <hut@lavabit.com>2010-01-01 23:17:31 +0100
commit2f6a77abaeebc8c660dc57db71e025f95a82cf04 (patch)
treec4f288c9db8e39f764e3f04a495bcb620e636676
parent63f22638265680d87269a3493097ee3486a3b259 (diff)
downloadranger-2f6a77abaeebc8c660dc57db71e025f95a82cf04.tar.gz
pager: fixed G key
-rw-r--r--ranger/gui/widgets/pager.py5
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