From c8e5a69085e89c2bac6bd01c74fcb98f9ffa5cdc Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Fri, 1 Apr 2022 13:44:47 +0600 Subject: [PATCH] fix: theme colors not applied as default when color option is incomplete fixes #631 --- lua/lualine/highlight.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lualine/highlight.lua b/lua/lualine/highlight.lua index cd4f8c7..086d9b7 100644 --- a/lua/lualine/highlight.lua +++ b/lua/lualine/highlight.lua @@ -282,7 +282,9 @@ local function get_default_component_color(hl_name, mode, section, color, option and options.color_highlight.name .. '_' .. mode ~= hl_name then apply_default(options.color, options.color_highlight.name .. '_' .. mode) - else + end + + if not ret.fg or not ret.bg then apply_default(default_theme_color, string.format('lualine_%s_%s', section, mode)) end ret.fg = sanitize_color(ret.fg)