mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-30 09:24:44 +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
|
endfunction
|
||||||
|
|
||||||
function! s:get_array(fg, bg, opts)
|
function! s:get_array(fg, bg, opts)
|
||||||
|
let opts=empty(a:opts) ? '' : join(a:opts, ',')
|
||||||
return g:airline_gui_mode ==# 'gui'
|
return g:airline_gui_mode ==# 'gui'
|
||||||
\ ? [ a:fg, a:bg, '', '', join(a:opts, ',') ]
|
\ ? [ a:fg, a:bg, '', '', opts ]
|
||||||
\ : [ '', '', a:fg, a:bg, join(a:opts, ',') ]
|
\ : [ '', '', a:fg, a:bg, opts ]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#highlighter#get_highlight(group, ...)
|
function! airline#highlighter#get_highlight(group, ...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user