Fix component separator not removed for string color (#192)
This commit is contained in:
parent
2f17e432ee
commit
e3a558bc1d
|
@ -28,8 +28,9 @@ function M.draw_section(section, highlight_name)
|
||||||
status[component_no] = section[component_no]:strip_separator()
|
status[component_no] = section[component_no]:strip_separator()
|
||||||
end
|
end
|
||||||
-- Remove component separator when color option is used to color background
|
-- Remove component separator when color option is used to color background
|
||||||
if section[component_no].options.color and
|
if (type(section[component_no].options.color) == 'table' and
|
||||||
section[component_no].options.color.bg then
|
section[component_no].options.color.bg) or
|
||||||
|
type(section[component_no].options.color) == 'string' then
|
||||||
next_component_colored = true
|
next_component_colored = true
|
||||||
status[component_no] = section[component_no]:strip_separator()
|
status[component_no] = section[component_no]:strip_separator()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue