From 429cfcd71e1103057f6500ed8e3c10a3868117c2 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 6 Jun 2016 20:40:51 +0200 Subject: [PATCH] minor: do not copy args in s:get_array --- autoload/airline/highlighter.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index 3d30d69..f575b5f 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -31,11 +31,9 @@ function! s:get_syn(group, what) endfunction function! s:get_array(fg, bg, opts) - let fg = a:fg - let bg = a:bg return g:airline_gui_mode ==# 'gui' - \ ? [ fg, bg, '', '', join(a:opts, ',') ] - \ : [ '', '', fg, bg, join(a:opts, ',') ] + \ ? [ a:fg, a:bg, '', '', join(a:opts, ',') ] + \ : [ '', '', a:fg, a:bg, join(a:opts, ',') ] endfunction function! airline#highlighter#get_highlight(group, ...)