This reverts commit 90d7b8edb1.
fixes #1267
This commit is contained in:
parent
aefa66c04d
commit
d88d12f5bc
@ -97,7 +97,7 @@ function Builder:_unwrap_git_data(git_icons_and_hl_groups, offset)
|
|||||||
for _, v in ipairs(git_icons_and_hl_groups) do
|
for _, v in ipairs(git_icons_and_hl_groups) do
|
||||||
if #v.icon > 0 then
|
if #v.icon > 0 then
|
||||||
self:_insert_highlight(v.hl, offset + #icon, offset + #icon + #v.icon)
|
self:_insert_highlight(v.hl, offset + #icon, offset + #icon + #v.icon)
|
||||||
icon = icon .. v.icon
|
icon = icon .. v.icon .. self.git_icon_padding
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return icon
|
return icon
|
||||||
@ -138,11 +138,11 @@ end
|
|||||||
|
|
||||||
function Builder:_format_line(before, after, git_icons)
|
function Builder:_format_line(before, after, git_icons)
|
||||||
return string.format(
|
return string.format(
|
||||||
"%s%s%s%s",
|
"%s%s%s %s",
|
||||||
before,
|
before,
|
||||||
#git_icons > 0 and not self.is_git_after and git_icons .. self.git_icon_padding or "",
|
self.is_git_after and "" or git_icons,
|
||||||
after,
|
after,
|
||||||
#git_icons > 0 and self.is_git_after and self.git_icon_padding .. git_icons or ""
|
self.is_git_after and git_icons or ""
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user