fix(#3124): prevent empty icons_right_align response from breaking padding

This commit is contained in:
Ross W 2025-05-11 13:26:48 +01:00
parent e7d1b7dadc
commit 19b45eda72

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