summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-05-06 20:12:14 +0200
committerhut <hut@lepus.uberspace.de>2016-05-06 20:12:14 +0200
commit60ee8098c34c4f682e7cf47b60103b11bc0db5f0 (patch)
treeb5c00e1f2f54f16156dcf840762f71ddd3ad812a
parent899e615b63a1a68fbc9bcc389eef18432c74ca9e (diff)
downloadranger-60ee8098c34c4f682e7cf47b60103b11bc0db5f0.tar.gz
widgets.view_miller: fix warning when toggling view mode
-rw-r--r--ranger/gui/widgets/view_miller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/view_miller.py b/ranger/gui/widgets/view_miller.py
index b34cc579..dbf59ff8 100644
--- a/ranger/gui/widgets/view_miller.py
+++ b/ranger/gui/widgets/view_miller.py
@@ -203,7 +203,7 @@ class ViewMiller(ViewBase):
                 if not cut_off:
                     wid = int(self.wid - left + 1 - pad)
                 else:
-                    self.columns[i].resize(pad, left - 1, hei - pad * 2, 1)
+                    self.columns[i].resize(pad, max(0, left - 1), hei - pad * 2, 1)
                     self.columns[i].visible = False
                     continue