mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
Fix the display tree with the -l flag
This commit is contained in:
parent
e4342f86d1
commit
7c0bdb6b6a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue