From 7c0bdb6b6aac84d980a19ac7a83f864de158c868 Mon Sep 17 00:00:00 2001 From: Pierre Peltier Date: Mon, 4 Nov 2019 12:09:05 +0100 Subject: [PATCH] Fix the display tree with the -l flag --- src/flags.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flags.rs b/src/flags.rs index fe327e8..0a10b7f 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -62,13 +62,13 @@ impl Flags { SortOrder::Default }; - let layout = if matches.is_present("long") + let layout = if matches.is_present("tree") { + Layout::Tree + } else if matches.is_present("long") || matches.is_present("oneline") || blocks_inputs.len() > 1 { Layout::OneLine - } else if matches.is_present("tree") { - Layout::Tree } else { Layout::Grid };