mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-27 10:22:40 +00:00
Merge pull request #552 from j-tai/icons-1-col
Display icons when file names are too long for grid
This commit is contained in:
commit
404ed20fd3
@ -63,6 +63,9 @@ impl<'a> Render<'a> {
|
||||
// This isn’t *quite* the same as the lines view, which also
|
||||
// displays full link paths.
|
||||
for file in &self.files {
|
||||
if self.opts.icons {
|
||||
write!(w, "{}", painted_icon(&file, &self.style))?;
|
||||
}
|
||||
let name_cell = self.style.for_file(file, self.colours).paint();
|
||||
writeln!(w, "{}", name_cell.strings())?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user