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

This commit is contained in:
Alexander Courtis 2023-02-13 10:32:02 +11:00 committed by GitHub
parent 36e29c3a95
commit ba1778e061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,6 +88,10 @@ local function get_icons_(node)
end
end
if #iconss == 0 then
return nil
end
-- sort icons so it looks slightly better
table.sort(iconss, function(a, b)
return a.ord < b.ord