highlighter: vim9 script implementation of add_separator

This commit is contained in:
Christian 2020-11-18 11:58:50 +01:00 committed by Christian Brabandt
parent 56ba4b34a7
commit 5ac55ea4e5
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -515,4 +515,8 @@ else
airline#highlighter#highlight(['normal'])
endif
enddef
def! airline#highlighter#add_separator(from: string, to: string, inverse: bool): void # {{{2
s:separators[from .. to] = [from, to, inverse]
s:exec_separator({}, from, to, inverse, '')
enddef
endif