Only renders the git icon if the icon is not empty (#633)
This commit is contained in:
@@ -231,8 +231,10 @@ if icon_state.show_git_icon then
|
|||||||
icons = git_icon_state.dirty
|
icons = git_icon_state.dirty
|
||||||
end
|
end
|
||||||
for _, v in ipairs(icons) do
|
for _, v in ipairs(icons) do
|
||||||
table.insert(hl, { v.hl, line, depth+icon_len+#icon, depth+icon_len+#icon+#v.icon })
|
if #v.icon > 0 then
|
||||||
icon = icon..v.icon..icon_padding
|
table.insert(hl, { v.hl, line, depth+icon_len+#icon, depth+icon_len+#icon+#v.icon })
|
||||||
|
icon = icon..v.icon..icon_padding
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return icon
|
return icon
|
||||||
|
|||||||
Reference in New Issue
Block a user