mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-23 22:15:28 +02:00
highlighter: vim9 fix duplicate variable name in s:exec_separator function
This commit is contained in:
parent
798a346a91
commit
56ba4b34a7
@ -485,14 +485,14 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
enddef
|
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()
|
if pumvisible()
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
var group = from .. '_to_' .. to .. suffix
|
var group = from_arg .. '_to_' .. to_arg .. suffix
|
||||||
var from = airline#themes#get_highlight(from .. suffix)
|
var from = airline#themes#get_highlight(from_arg .. suffix)
|
||||||
var colors = []
|
var colors = []
|
||||||
var to = airline#themes#get_highlight(to .. suffix)
|
var to = airline#themes#get_highlight(to_arg .. suffix)
|
||||||
if inverse
|
if inverse
|
||||||
colors = [ from[1], to[1], from[3], to[3] ]
|
colors = [ from[1], to[1], from[3], to[3] ]
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user