Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/lualine/utils/section.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ function M.draw_section(section, section_name, is_focused)
(
type(section[component_no].options.color) == 'table'
and section[component_no].options.color.bg
and section[component_no].options.color.bg ~= section_color.bg
and string.upper(section[component_no].options.color.bg) ~= string.upper(section_color.bg)
)
or type(section[component_no].options.color) == 'string'
or (
type(section[component_no].options.color) == 'function'
and section[component_no].color_fn_cache
and section[component_no].color_fn_cache.bg
and section[component_no].color_fn_cache.bg ~= section_color.bg
and string.upper(section[component_no].color_fn_cache.bg) ~= string.upper(section_color.bg)
)
then
strip_next_component = true
Expand Down