highlighter: vim9 fix duplicate variable name in s:exec_separator function

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

View File

@ -485,14 +485,14 @@ else
endif
endif
enddef
def s:exec_separator(dict: dict<string>, from: string, to: string, inverse: bool, suffix: string): void # {{{2
def s:exec_separator(dict: dict<any>, from_arg: string, to_arg: string, inverse: bool, suffix: string): void # {{{2
if pumvisible()
return
endif
var group = from .. '_to_' .. to .. suffix
var from = airline#themes#get_highlight(from .. suffix)
var group = from_arg .. '_to_' .. to_arg .. suffix
var from = airline#themes#get_highlight(from_arg .. suffix)
var colors = []
var to = airline#themes#get_highlight(to .. suffix)
var to = airline#themes#get_highlight(to_arg .. suffix)
if inverse
colors = [ from[1], to[1], from[3], to[3] ]
else