mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Fix: Stop adding extra output lines for multi args
If we provided n names we would previous output screen_height + n lines. This is wrong. We should only print screen_height lines
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ fn main() {
|
||||
let sorted_data = sort(nodes);
|
||||
let biggest_ones = {
|
||||
match depth {
|
||||
None => find_big_ones(sorted_data, number_of_lines + simplified_dirs.len()),
|
||||
None => find_big_ones(sorted_data, number_of_lines),
|
||||
Some(_) => sorted_data,
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user