Skip to content

Commit ba1778e

Browse files
authored
fix(#1923): handle empty git icons (#1987)
1 parent 36e29c3 commit ba1778e

File tree

1 file changed

+4
-0
lines changed
  • lua/nvim-tree/renderer/components

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ local function get_icons_(node)
8888
end
8989
end
9090

91+
if #iconss == 0 then
92+
return nil
93+
end
94+
9195
-- sort icons so it looks slightly better
9296
table.sort(iconss, function(a, b)
9397
return a.ord < b.ord

0 commit comments

Comments
 (0)