diff options
author | hut <hut@lepus.uberspace.de> | 2016-05-06 20:12:14 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-05-06 20:12:14 +0200 |
commit | 60ee8098c34c4f682e7cf47b60103b11bc0db5f0 (patch) | |
tree | b5c00e1f2f54f16156dcf840762f71ddd3ad812a /ranger | |
parent | 899e615b63a1a68fbc9bcc389eef18432c74ca9e (diff) | |
download | ranger-60ee8098c34c4f682e7cf47b60103b11bc0db5f0.tar.gz |
widgets.view_miller: fix warning when toggling view mode
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/view_miller.py | 2 |
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 |