Fix bug where header line would appear twice

This commit is contained in:
Ben S 2014-11-25 01:31:26 +00:00
parent df6544aae0
commit 0b1e94a3c8

View File

@ -65,7 +65,9 @@ fn exa(opts: &Options) {
let print_dir_names = opts.path_strs.len() > 1;
let mut first = files.is_empty();
view(opts, files);
if !files.is_empty() {
view(opts, files);
}
for dir_name in dirs.into_iter() {
if first {