Merge remote-tracking branch 'origin/master' into 2826-multi-instance-view-amc
This commit is contained in:
@@ -134,12 +134,12 @@ 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
|
||||
if added_len > 0 then
|
||||
table.insert(t1, { str = self.explorer.opts.renderer.icons.padding })
|
||||
table.insert(t1, { str = self.explorer.opts.renderer.icons.padding.icon })
|
||||
end
|
||||
table.insert(t1, v)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user