From f728edd31d11d5255ca571d7599395470b60b67a Mon Sep 17 00:00:00 2001 From: shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> Date: Wed, 25 Aug 2021 18:35:41 +0600 Subject: [PATCH] fix: odd situation of section separators with ayz/abz section configured --- lua/lualine/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lualine/init.lua b/lua/lualine/init.lua index 90e65c3..3566209 100644 --- a/lua/lualine/init.lua +++ b/lua/lualine/init.lua @@ -71,6 +71,9 @@ local function apply_transitional_separators(status) copied_pos = str_checked elseif next_char == '%' then str_checked = str_checked + 2 -- Skip the following % too + elseif next_char == '=' then + last_hl = nil + str_checked = str_checked + 1 -- Skip the following % too else str_checked = str_checked + 1 -- Push it forward to avoid inf loop end