fix(#3124): fix icon padding for "right_align" placements, notably for dotfiles (#3125)

fix(#3124): prevent empty icons_right_align response from breaking padding
This commit is contained in:
Ross W 2025-05-18 03:26:18 +01:00 committed by GitHub
parent e7d1b7dadc
commit e4cd856ebf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,7 @@ end
function Builder:format_line(indent_markers, arrows, icon, name, node)
local added_len = 0
local function add_to_end(t1, t2)
if not t2 then
if not t2 or vim.tbl_isempty(t2) then
return
end
for _, v in ipairs(t2) do