fix: transparent background throwing errors without termguicolors

fixes #623 #625
This commit is contained in:
shadmansaleh 2022-03-26 09:40:13 +00:00
parent 428da5a1b5
commit 4480d91e60
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ end
---@param color string|number
---@return string
local function sanitize_color(color)
if color == nil or color == '' then
if color == nil or color == '' or (type(color) == 'string' and color:lower() == 'none') then
return 'None'
end
if type(color) == 'string' then