mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-25 21:37:33 +00:00
Fix bug where header line would appear twice
This commit is contained in:
parent
df6544aae0
commit
0b1e94a3c8
@ -65,7 +65,9 @@ fn exa(opts: &Options) {
|
|||||||
let print_dir_names = opts.path_strs.len() > 1;
|
let print_dir_names = opts.path_strs.len() > 1;
|
||||||
let mut first = files.is_empty();
|
let mut first = files.is_empty();
|
||||||
|
|
||||||
view(opts, files);
|
if !files.is_empty() {
|
||||||
|
view(opts, files);
|
||||||
|
}
|
||||||
|
|
||||||
for dir_name in dirs.into_iter() {
|
for dir_name in dirs.into_iter() {
|
||||||
if first {
|
if first {
|
||||||
|
Loading…
Reference in New Issue
Block a user