Skip to content

Commit e4cd856

Browse files
authored
fix(#3124): fix icon padding for "right_align" placements, notably for dotfiles (#3125)
fix(#3124): prevent empty icons_right_align response from breaking padding
1 parent e7d1b7d commit e4cd856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/renderer/builder.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ end
135135
function Builder:format_line(indent_markers, arrows, icon, name, node)
136136
local added_len = 0
137137
local function add_to_end(t1, t2)
138-
if not t2 then
138+
if not t2 or vim.tbl_isempty(t2) then
139139
return
140140
end
141141
for _, v in ipairs(t2) do

0 commit comments

Comments
 (0)