fix(renderer): empty space at end of line

fixes #1253
This commit is contained in:
kiyan 2022-05-15 10:27:22 +02:00
parent 7293f8dc70
commit 9d26594b6c

View File

@ -138,8 +138,9 @@ function Builder:_build_folder(node, padding, git_hl, git_icons_tbl)
end end
function Builder:_format_line(before, after, git_icons) function Builder:_format_line(before, after, git_icons)
git_icons = self.is_git_after and git_icons and " " .. git_icons or git_icons
return string.format( return string.format(
"%s%s%s %s", "%s%s%s%s",
before, before,
self.is_git_after and "" or git_icons, self.is_git_after and "" or git_icons,
after, after,