highlighter: get rid of superflous l: var prefix

This commit is contained in:
Christian 2020-11-18 11:08:32 +01:00 committed by Christian Brabandt
parent 5391b3e246
commit 4f8675434a
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -180,12 +180,12 @@ if !exists(":def") || (exists(":def") && get(g:, "airline_experimental", 0)==0)
return return
endif endif
let group = a:from.'_to_'.a:to.a:suffix let group = a:from.'_to_'.a:to.a:suffix
let l:from = airline#themes#get_highlight(a:from.a:suffix) let from = airline#themes#get_highlight(a:from.a:suffix)
let l:to = airline#themes#get_highlight(a:to.a:suffix) let to = airline#themes#get_highlight(a:to.a:suffix)
if a:inverse if a:inverse
let colors = [ l:from[1], l:to[1], l:from[3], l:to[3] ] let colors = [ from[1], to[1], from[3], to[3] ]
else else
let colors = [ l:to[1], l:from[1], l:to[3], l:from[3] ] let colors = [ to[1], from[1], to[3], from[3] ]
endif endif
let a:dict[group] = colors let a:dict[group] = colors
call airline#highlighter#exec(group, colors) call airline#highlighter#exec(group, colors)