summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-12-25 22:44:55 +0100
committerhut <hut@lavabit.com>2010-12-25 22:44:55 +0100
commit8a1f66bb48a3d35e8f7a73685f963126f0c71744 (patch)
tree03b9cdfa2727884ccec8e8cd23734423cd944f30
parentef2b1e374359aec59199c7e8d9334fe2aefed153 (diff)
downloadranger-8a1f66bb48a3d35e8f7a73685f963126f0c71744.tar.gz
gui.widgets.browserview: Fixed problem with inspect (key i)
When previews are on and you're pressing i, the old preview remains
there for a while, making ranger show two previews at once.
-rw-r--r--ranger/gui/widgets/browserview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py
index 2be3ca92..09944108 100644
--- a/ranger/gui/widgets/browserview.py
+++ b/ranger/gui/widgets/browserview.py
@@ -294,7 +294,7 @@ class BrowserView(Widget, DisplayableContainer):
 		# been hidden (e.g. because of padding_right = False)
 		if not self.pager.visible and not self.columns[-1].visible and \
 		self.columns[-1].target and self.columns[-1].target.is_directory \
-		or self.columns[-1].has_preview():
+		or self.columns[-1].has_preview() and not self.pager.visible:
 			self.columns[-1].visible = True
 
 		if self.preview and self.is_collapsed != self._collapse():