Skip right sep when %<left_sep is righr after it(lualine_b->c)
This commit is contained in:
parent
9be79955b8
commit
649b7dd652
|
@ -71,7 +71,7 @@ local function apply_transitional_separators(status)
|
|||
-- %S{sep} is marker for right separator and
|
||||
local sep = status:match('^%%S{(.-)}', str_checked)
|
||||
str_checked = str_checked + #sep + 4 -- 4 = len(%{})
|
||||
if status:find('^%%s', str_checked) then
|
||||
if status:find('^%%s', str_checked) or status:find('^%%<%%s', str_checked) then
|
||||
-- When transitional right_sep and left_sep are right next to each other
|
||||
-- and in this exact order skip the left sep as we can't draw both.
|
||||
str_checked = status:find('}', str_checked) + 1
|
||||
|
|
Loading…
Reference in New Issue