mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-01-23 21:58:27 +00:00
Don't pad the final column
This commit is contained in:
parent
240cbf7b41
commit
fc90f4bfc9
@ -92,7 +92,12 @@ fn grid_view(options: &Options, across: bool, dir: Dir) {
|
|||||||
let file = files.get(num);
|
let file = files.get(num);
|
||||||
let file_name = file.name.clone();
|
let file_name = file.name.clone();
|
||||||
let styled_name = file.file_colour().paint(file_name.as_slice());
|
let styled_name = file.file_colour().paint(file_name.as_slice());
|
||||||
print!("{}", Left.pad_string(&styled_name, max_column_length - file_name.len() + 1));
|
if x == num_columns - 1 {
|
||||||
|
print!("{}", styled_name);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print!("{}", Left.pad_string(&styled_name, max_column_length - file_name.len() + 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print!("\n");
|
print!("\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user