about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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