diff options
author | nfnty <git@nfnty.se> | 2016-12-21 08:42:29 +0100 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2016-12-21 08:42:29 +0100 |
commit | 3ccc4dc458f30effc29c05299acbda1f5003edc2 (patch) | |
tree | d192d95ce6ccbdb5ef633c6c4d96d94582cf4bd7 | |
parent | e1565d6515b51055230d9b9cc1dded729b0d8392 (diff) | |
parent | 282d932fc027f25a29219ce231f7260ad26a9f33 (diff) | |
download | ranger-3ccc4dc458f30effc29c05299acbda1f5003edc2.tar.gz |
Merge remote-tracking branch 'Enzime/fix/multipane-not-using-entire-width'
-rw-r--r-- | ranger/gui/widgets/view_multipane.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/widgets/view_multipane.py b/ranger/gui/widgets/view_multipane.py index 7b77b3db..f8efd80f 100644 --- a/ranger/gui/widgets/view_multipane.py +++ b/ranger/gui/widgets/view_multipane.py @@ -42,11 +42,11 @@ class ViewMultipane(ViewBase): def resize(self, y, x, hei, wid): ViewBase.resize(self, y, x, hei, wid) - column_width = int(float(wid) / len(self.columns)) + column_width = int((float(wid) - len(self.columns) + 1) / len(self.columns)) left = 0 top = 0 for i, column in enumerate(self.columns): - column.resize(top, left, hei, max(1, column_width - 1)) - left += column_width + column.resize(top, left, hei, max(1, column_width)) + left += column_width + 1 column.need_redraw = True self.need_redraw = True |