diff options
Diffstat (limited to 'ranger/gui/widgets/view_miller.py')
-rw-r--r-- | ranger/gui/widgets/view_miller.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/widgets/view_miller.py b/ranger/gui/widgets/view_miller.py index da6b529f..569b93fa 100644 --- a/ranger/gui/widgets/view_miller.py +++ b/ranger/gui/widgets/view_miller.py @@ -56,8 +56,8 @@ class ViewMiller(ViewBase): # pylint: disable=too-many-ancestors,too-many-insta self.remove_child(column) self.columns = [] - ratio_sum = float(sum(ratios)) - self.ratios = tuple(x / ratio_sum for x in ratios) + ratios_sum = sum(ratios) + self.ratios = tuple((x / ratios_sum) for x in ratios) last = 0.1 if self.settings.padding_right else 0 if len(self.ratios) >= 2: |