summary refs log tree commit diff stats
path: root/ranger/gui/widgets/browsercolumn.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/gui/widgets/browsercolumn.py')
-rw-r--r--ranger/gui/widgets/browsercolumn.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index a5579c15..fcf09845 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -35,6 +35,7 @@ class BrowserColumn(Pager):
 		Pager.__init__(self, win)
 		Widget.__init__(self, win)
 		self.level = level
+		self.original_level = level
 
 		self.settings.signal_bind('setopt.display_size_in_main_column',
 				self.request_redraw, weak=True)
@@ -119,6 +120,12 @@ class BrowserColumn(Pager):
 
 		return True
 
+	def level_shift(self, amount):
+		self.level = self.original_level + amount
+
+	def level_restore(self):
+		self.level = self.original_level
+
 	def poke(self):
 		Widget.poke(self)
 		self.target = self.fm.thistab.at_level(self.level)