mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-29 17:04:34 +02:00
highlighter: improve performance of get_array() function
This commit is contained in:
parent
c65d7fe36b
commit
e9a7a12d9e
@ -41,9 +41,10 @@ function! s:get_syn(group, what)
|
||||
endfunction
|
||||
|
||||
function! s:get_array(fg, bg, opts)
|
||||
let opts=empty(a:opts) ? '' : join(a:opts, ',')
|
||||
return g:airline_gui_mode ==# 'gui'
|
||||
\ ? [ a:fg, a:bg, '', '', join(a:opts, ',') ]
|
||||
\ : [ '', '', a:fg, a:bg, join(a:opts, ',') ]
|
||||
\ ? [ a:fg, a:bg, '', '', opts ]
|
||||
\ : [ '', '', a:fg, a:bg, opts ]
|
||||
endfunction
|
||||
|
||||
function! airline#highlighter#get_highlight(group, ...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user