From dd9dffff8c28d66235baecd50392396a975cf902 Mon Sep 17 00:00:00 2001 From: James Tai Date: Tue, 30 Jul 2019 18:33:12 -0700 Subject: [PATCH] Display icons when file names are too long for grid Fixes ogham/exa#548 --- src/output/grid.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/output/grid.rs b/src/output/grid.rs index 876e100..e628bc6 100644 --- a/src/output/grid.rs +++ b/src/output/grid.rs @@ -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())?; }