瀏覽代碼

fix: respect icon spacing

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 年之前
父節點
當前提交
167248efd3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(),
             };