Procházet zdrojové kódy

Merge pull request #552 from j-tai/icons-1-col

Display icons when file names are too long for grid
Benjamin Sago před 6 roky
rodič
revize
404ed20fd3
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      src/output/grid.rs

+ 3 - 0
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())?;
             }