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