Skip to content

Commit 0b3f4aa

Browse files
committed
fix(renderer): empty space at end of line
fixes #1259
1 parent 7293f8d commit 0b3f4aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/nvim-tree/renderer/builder.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ function Builder:_build_folder(node, padding, git_hl, git_icons_tbl)
138138
end
139139

140140
function Builder:_format_line(before, after, git_icons)
141+
git_icons = self.is_git_after and git_icons and " " .. git_icons or git_icons
141142
return string.format(
142-
"%s%s%s %s",
143+
"%s%s%s%s",
143144
before,
144145
self.is_git_after and "" or git_icons,
145146
after,

0 commit comments

Comments
 (0)