From 4480d91e60b9bcee3e547b1e84a2542fa1027d26 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Sat, 26 Mar 2022 09:40:13 +0000 Subject: [PATCH] fix: transparent background throwing errors without termguicolors fixes #623 #625 --- lua/lualine/highlight.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/highlight.lua b/lua/lualine/highlight.lua index 7072857..42862eb 100644 --- a/lua/lualine/highlight.lua +++ b/lua/lualine/highlight.lua @@ -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