Skip to content

Commit

Permalink
fix: catch none syn attr (#19)
Browse files Browse the repository at this point in the history
When a highlight is defined with `none` the attribute returns `none` but when defined with `NONE` an empty string is returned
  • Loading branch information
njhoffman committed Sep 9, 2021
1 parent 6602d0d commit 118444c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/notify/service/buffer/highlights.lua
Expand Up @@ -55,7 +55,7 @@ function NotifyBufHighlights:set_opacity(alpha)
for group, fields in pairs(self.groups) do
local updated_fields = {}
for name, value in pairs(fields) do
if value ~= "" then
if value ~= "" and value ~= "none" then
updated_fields[name] = util.blend(value, background, alpha / 100)
end
end
Expand Down

0 comments on commit 118444c

Please sign in to comment.