mirror of
https://github.com/bootandy/dust.git
synced 2025-12-12 15:49:58 -08:00
Fix multi-paths output when depth is 0
This commit is contained in:
@@ -46,10 +46,11 @@ pub fn get_biggest(
|
|||||||
|
|
||||||
let nodes = handle_duplicate_top_level_names(top_level_nodes, display_data.short_paths);
|
let nodes = handle_duplicate_top_level_names(top_level_nodes, display_data.short_paths);
|
||||||
root = total_node_builder(size, nodes);
|
root = total_node_builder(size, nodes);
|
||||||
|
heap = always_add_children(&display_data, &root, heap);
|
||||||
} else {
|
} else {
|
||||||
root = top_level_nodes.into_iter().next().unwrap();
|
root = top_level_nodes.into_iter().next().unwrap();
|
||||||
|
heap = add_children(&display_data, &root, heap);
|
||||||
}
|
}
|
||||||
heap = add_children(&display_data, &root, heap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fill_remaining_lines(heap, &root, display_data, keep_collapsed)
|
fill_remaining_lines(heap, &root, display_data, keep_collapsed)
|
||||||
|
|||||||
Reference in New Issue
Block a user