From 649b7dd652677e81974ef16f143eef9b8d05fbc5 Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Mon, 30 Aug 2021 09:41:26 +0600 Subject: [PATCH] Skip right sep when %c) --- lua/lualine/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lualine/init.lua b/lua/lualine/init.lua index 1829615..14f6157 100644 --- a/lua/lualine/init.lua +++ b/lua/lualine/init.lua @@ -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