Use full width of terminal (extra 2 characters)

Make output 2 characters wider to use the full width of terminal
This commit is contained in:
andy.boot
2020-08-18 22:29:44 +01:00
parent 109df305a3
commit 82237c6bde
3 changed files with 36 additions and 34 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ pub fn draw_it(
if !permissions {
eprintln!("Did not have permissions for all directories");
}
let terminal_width = (get_width_of_terminal() - 16) as usize;
let terminal_width = (get_width_of_terminal() - 14) as usize;
let num_indent_chars = 3;
let longest_string_length = root_node
.children