summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2016-08-20 17:16:04 +1000
committerMichael Hoang <enzime@users.noreply.github.com>2016-08-20 17:16:04 +1000
commitb093aa028839e26d19bf7ceefaf4666a036ec5da (patch)
tree0236dea6e40d1322b4f7b3091874bdc6bfc76bf3
parent6c9fa07f81d9ab181c0168e5d32ac86c629b8c73 (diff)
downloadranger-b093aa028839e26d19bf7ceefaf4666a036ec5da.tar.gz
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.
-rw-r--r--ranger/gui/widgets/view_miller.py5
1 files 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():