mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-23 12:32:00 +00:00
Merge commit '53387122de3851df5e1e38ad2fedc01404568ada' into add-ext-attributes
This commit is contained in:
commit
37d79da201
@ -51,7 +51,7 @@ impl Grid {
|
|||||||
else {
|
else {
|
||||||
index / num_lines
|
index / num_lines
|
||||||
};
|
};
|
||||||
column_widths[index] = max(column_widths[index], file.name.len());
|
column_widths[index] = max(column_widths[index], file.file_name_width());
|
||||||
}
|
}
|
||||||
|
|
||||||
// If they all fit in the terminal, combined, then success!
|
// If they all fit in the terminal, combined, then success!
|
||||||
@ -87,8 +87,8 @@ impl Grid {
|
|||||||
print!("{}", styled_name);
|
print!("{}", styled_name);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert!(widths[x] >= file.name.len());
|
assert!(widths[x] >= file.file_name_width());
|
||||||
print!("{}", Left.pad_string(&styled_name, widths[x] - file.name.len() + 2));
|
print!("{}", Left.pad_string(&styled_name, widths[x] - file.file_name_width() + 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print!("\n");
|
print!("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user