Skip to content

Commit 8505b6e

Browse files
authored
fix(#1923): handle empty git icons (#1952)
* 1923 skip empty git icons * 1923 skip empty git icons
1 parent 215b29b commit 8505b6e

File tree

1 file changed

+5
-3
lines changed
  • lua/nvim-tree/renderer/components

1 file changed

+5
-3
lines changed

lua/nvim-tree/renderer/components/git.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ local function get_icons_(node)
7979
end
8080

8181
for _, icon in pairs(icons) do
82-
if not inserted[icon] then
83-
table.insert(iconss, icon)
84-
inserted[icon] = true
82+
if #icon.str > 0 then
83+
if not inserted[icon] then
84+
table.insert(iconss, icon)
85+
inserted[icon] = true
86+
end
8587
end
8688
end
8789
end

0 commit comments

Comments
 (0)