diff options
author | andy.boot <bootandy@gmail.com> | 2022-08-20 09:10:37 +0100 |
---|---|---|
committer | andy.boot <bootandy@gmail.com> | 2022-08-20 11:09:56 +0100 |
commit | 4b4bca52d99ee8ff72eaae5b581b9b6292ea5797 (patch) | |
tree | 00b93d453f1002a08324206b194fdf432ba29a8a | |
parent | 2a9d545c3c48f222fb4f06a7414bc97e1dcdf2dc (diff) |
Rename variable
Better name, this represents the percent bars just 'percent' is vague
-rw-r--r-- | src/display.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.rs b/src/display.rs index 3d81c4e..ca077d9 100644 --- a/src/display.rs +++ b/src/display.rs @@ -111,7 +111,7 @@ pub fn draw_it( use_full_path: bool, is_reversed: bool, no_colors: bool, - no_percents: bool, + no_percent_bars: bool, terminal_width: usize, by_filecount: bool, root_node: &DisplayNode, @@ -143,7 +143,7 @@ pub fn draw_it( let longest_string_length = find_longest_dir_name(root_node, num_indent_chars, allowed_width, !use_full_path); - let max_bar_length = if no_percents || longest_string_length + 7 >= allowed_width as usize { + let max_bar_length = if no_percent_bars || longest_string_length + 7 >= allowed_width as usize { 0 } else { allowed_width as usize - longest_string_length - 7 |