about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-10 00:53:45 +0200
committerhut <hut@lavabit.com>2010-04-10 00:53:45 +0200
commit44a28601f4e1ab857e75ee4a48f45464f2ff3eff (patch)
tree1f5f08af2aebb303d9f9cc3df392aa3872a0bd77
parent035a39a8a468ba842fd69a2370aba8ac3c1f3d39 (diff)
downloadranger-44a28601f4e1ab857e75ee4a48f45464f2ff3eff.tar.gz
widgets.browserview: fixed collapse_preview
-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 163fd503..7f2ea5fb 100644
--- a/ranger/gui/widgets/browserview.py
+++ b/ranger/gui/widgets/browserview.py
@@ -264,7 +264,7 @@ class BrowserView(Widget, DisplayableContainer):
 	def poke(self):
 		DisplayableContainer.poke(self)
 		if self.settings.collapse_preview and self.preview:
-			has_preview = self.columns[-2].has_preview()
+			has_preview = self.columns[-1].has_preview()
 			if self.preview_available != has_preview:
 				self.preview_available = has_preview
 				self.resize(self.y, self.x, self.hei, self.wid)
'n127' href='#n127'>127 128 129 130 131 132 133 134 135 136