summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-05 06:16:35 +0100
committerhut <hut@lavabit.com>2010-01-05 06:16:35 +0100
commit491a5312cc73da810161f014c5c8bb26ec910b18 (patch)
treecd84d8aaa9bdd1d3fdddd399ef38d793e5c85956
parent535a9bd1091a14ed817a3b5663264d225e1d794d (diff)
downloadranger-491a5312cc73da810161f014c5c8bb26ec910b18.tar.gz
pager: open and close it properly
-rw-r--r--ranger/gui/defaultui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/gui/defaultui.py b/ranger/gui/defaultui.py
index cbc7cb08..9ec03669 100644
--- a/ranger/gui/defaultui.py
+++ b/ranger/gui/defaultui.py
@@ -58,6 +58,7 @@ class DefaultUI(UI):
 	def close_pager(self):
 		if self.console.visible:
 			self.console.focused = True
+		self.pager.close()
 		self.pager.visible = False
 		self.pager.focused = False
 		self.browser.visible = True
@@ -65,6 +66,7 @@ class DefaultUI(UI):
 	def open_pager(self):
 		if self.console.focused:
 			self.console.focused = False
+		self.pager.open()
 		self.pager.visible = True
 		self.pager.focused = True
 		self.browser.visible = False