Procházet zdrojové kódy

fix: respect icon spacing

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen před 2 roky
rodič
revize
167248efd3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/output/grid.rs

+ 1 - 1
src/output/grid.rs

@@ -47,7 +47,7 @@ impl<'a> Render<'a> {
             let width;
 
             match (filename.options.embed_hyperlinks, filename.options.show_icons) {
-                (EmbedHyperlinks::On, ShowIcons::On(_)) => width = filename.bare_width() + 1,
+                (EmbedHyperlinks::On, ShowIcons::On(spacing)) => width = filename.bare_width() + 1 + (spacing as usize),
                 (EmbedHyperlinks::On, ShowIcons::Off) => width = filename.bare_width(),
                 (EmbedHyperlinks::Off, _) => width = *contents.width(),
             };