Small tweek

This commit is contained in:
shadmansaleh 2021-05-12 21:24:09 +06:00
parent 7fc7175ed6
commit d7f3168a55
1 changed files with 2 additions and 2 deletions

View File

@ -47,10 +47,10 @@ local function apply_transitional_separators(previous_section, current_section,
-- Since the section isn't suppose to be highlighted with separators -- Since the section isn't suppose to be highlighted with separators
-- separators highlight extract the last highlight and place it between -- separators highlight extract the last highlight and place it between
-- separator and section -- separator and section
local last_hl = prev:match('.*%#(.-)#.-') local last_hl = prev:match('.*(%%#.-#).-')
current_section.data = prev .. current_section.data = prev ..
fill_section_separator(prev, nxt, sep, false) .. fill_section_separator(prev, nxt, sep, false) ..
'%#' .. last_hl .. '#' .. nxt last_hl .. nxt
else else
current_section.data = fill_section_separator(prev, nxt, sep, true) .. nxt current_section.data = fill_section_separator(prev, nxt, sep, true) .. nxt
end end