diff --git a/lua/feline/generator.lua b/lua/feline/generator.lua index e3a448f..5e43080 100644 --- a/lua/feline/generator.lua +++ b/lua/feline/generator.lua @@ -149,18 +149,18 @@ end -- By default, foreground color of separator is background color of parent -- and background color is set to default background color local function parse_sep(sep, parent_bg, is_component_empty) - if sep == nil then return {str = '', len = 0} end + if sep == nil then return {str = '', len = 0} end local hl local str if type(sep) == 'string' then - if is_component_empty then return {str = '', len = 0} end + if is_component_empty then return {str = '', len = 0} end str = sep hl = {fg = parent_bg, bg = colors.bg} else - if is_component_empty and not sep.always_visible then return {str = '', len = 0} end + if is_component_empty and not sep.always_visible then return {str = '', len = 0} end str = sep.str or '' hl = sep.hl or {fg = parent_bg, bg = colors.bg}