Skip to content

Commit 404ed20

Browse files
authored
Merge pull request ogham#552 from j-tai/icons-1-col
Display icons when file names are too long for grid
2 parents 69827e0 + dd9dfff commit 404ed20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/output/grid.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ impl<'a> Render<'a> {
6363
// This isn’t *quite* the same as the lines view, which also
6464
// displays full link paths.
6565
for file in &self.files {
66+
if self.opts.icons {
67+
write!(w, "{}", painted_icon(&file, &self.style))?;
68+
}
6669
let name_cell = self.style.for_file(file, self.colours).paint();
6770
writeln!(w, "{}", name_cell.strings())?;
6871
}

0 commit comments

Comments
 (0)