Skip to content

Commit

Permalink
fix(compiler): fixup "E418: Illegal value: blend=NONE" error if gui i…
Browse files Browse the repository at this point in the history
…s empty string
  • Loading branch information
ttys3 committed Mar 23, 2021
1 parent 8f03467 commit 34e2cf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/lush/compiler.lua
Expand Up @@ -15,6 +15,10 @@ local function make_group(name, opts)
local gui = opts.gui or 'NONE'
gui = string.gsub(gui, ' ', '')

if gui == '' then
gui = 'NONE'
end

return table.concat({
'highlight ' .. name,
'guifg=' .. (opts.fg or 'NONE'),
Expand Down

0 comments on commit 34e2cf6

Please sign in to comment.