summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2016-08-05 06:42:41 +1000
committerMichael Hoang <enzime@users.noreply.github.com>2016-08-21 08:05:35 +1000
commit17e9b4299373ebef70f7ad4a739512ae9d44d975 (patch)
treed780db5073a382305fe55c8ecc1588495a9d764d
parentb093aa028839e26d19bf7ceefaf4666a036ec5da (diff)
downloadranger-17e9b4299373ebef70f7ad4a739512ae9d44d975.tar.gz
Fix full folder size being shown incorrectly
The full size is only shown when ALL files (hidden or filtered) are
selected.
-rw-r--r--ranger/gui/widgets/statusbar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 4eb06692..0828c372 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -258,7 +258,7 @@ class StatusBar(Widget):
             right.add("', ", "space")
 
         if target.marked_items:
-            if len(target.marked_items) == len(target.files):
+            if len(target.marked_items) == target.size:
                 right.add(human_readable(target.disk_usage, separator=''))
             else:
                 sumsize = sum(f.size for f in target.marked_items if not