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:
andy.boot
2020-10-08 23:34:08 +01:00
parent 5b6b449cbd
commit e0347b0b43
+1 -1
View File
@@ -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,
}
};