Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
fix double spacing on parse_sep
Browse files Browse the repository at this point in the history
  • Loading branch information
famiu committed Sep 27, 2021
1 parent 41c3989 commit f119c00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/feline/generator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit f119c00

Please sign in to comment.