fix(#3134): setting one glyph to "" no longer disables others (#3136)

fix: fixes #3134
This commit is contained in:
Šimon Mandlík 2025-05-26 05:32:21 +02:00 committed by GitHub
parent cbc3165e08
commit ebcaccda1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,9 +112,8 @@ function Decorator:define_sign(icon)
vim.fn.sign_undefine(name)
end
-- don't use sign if not defined
-- don't render sign if empty
if #icon.str < 1 then
self.icon_placement = "none"
return
end