From b093aa028839e26d19bf7ceefaf4666a036ec5da Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Sat, 20 Aug 2016 17:16:04 +1000 Subject: Remove incorrect part of conditional The incorrect part of the conditional is already covered correctly in has_preview(), so it is redundant and can be removed. --- ranger/gui/widgets/view_miller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ranger/gui/widgets/view_miller.py b/ranger/gui/widgets/view_miller.py index 90046456..42013fe9 100644 --- a/ranger/gui/widgets/view_miller.py +++ b/ranger/gui/widgets/view_miller.py @@ -256,9 +256,8 @@ class ViewMiller(ViewBase): # Show the preview column when it has a preview but has # 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() and not self.pager.visible: + if not self.columns[-1].visible and self.columns[-1].has_preview() \ + and not self.pager.visible: self.columns[-1].visible = True if self.preview and self.is_collapsed != self._collapse(): -- cgit 1.4.1-2-gfad0