summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-03-31 20:51:11 +0200
committerCanop <cano.petrole@gmail.com>2022-03-31 20:51:11 +0200
commit51153d26ce0c4ab80c7b0678ddbec03b3b01b34a (patch)
treef9b0468a580d0ae854101eb389953ab6eba8c7f8 /src/display
parent7019073b69a03aeb633ab0fabc84fecbf3482c2b (diff)
Sort by type, with dirs either first or last
3 new internals. With `:st` you can select to sort by type with directories first, sort by type with directories last, or not sorting. Fix #467
Diffstat (limited to 'src/display')
-rw-r--r--src/display/displayable_tree.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/displayable_tree.rs b/src/display/displayable_tree.rs
index be5f2db..f1a827c 100644
--- a/src/display/displayable_tree.rs
+++ b/src/display/displayable_tree.rs
@@ -566,7 +566,7 @@ impl<'a, 's, 't> DisplayableTree<'a, 's, 't> {
}
Col::Size => {
- if tree.options.sort.is_some() {
+ if tree.options.sort.prevent_deep_display() {
// as soon as there's only one level displayed we can show the size bars
self.write_line_size_with_bar(cw, line, &label_style, total_size, selected)?
} else {