fix(#1923): handle empty git icons (#1952)

* 1923 skip empty git icons

* 1923 skip empty git icons
This commit is contained in:
Alexander Courtis 2023-02-04 16:27:27 +11:00 committed by GitHub
parent 215b29bfad
commit 8505b6ecd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,9 +79,11 @@ local function get_icons_(node)
end
for _, icon in pairs(icons) do
if not inserted[icon] then
table.insert(iconss, icon)
inserted[icon] = true
if #icon.str > 0 then
if not inserted[icon] then
table.insert(iconss, icon)
inserted[icon] = true
end
end
end
end