diff options
Diffstat (limited to 'src/tree_build.rs')
-rw-r--r-- | src/tree_build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tree_build.rs b/src/tree_build.rs index c9c47f5..9761bf6 100644 --- a/src/tree_build.rs +++ b/src/tree_build.rs @@ -369,6 +369,12 @@ impl TreeBuilder { } } else { // this depth is finished, we must go deeper + if self.options.show_sizes { + // both for technical reasons (bad sort) and ergonomics + // ones (it proved to be hard to read), we don't want + // a deep tree when looking at sizes. + break; + } if next_level_dirs.is_empty() { // except there's nothing deeper break; |