From a40a4514ce82619e32028d39966a2fa61ebbf7e4 Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Fri, 15 Feb 2019 14:12:00 -0800 Subject: Use local variables, don't modify a: dict --- colors/base16-solarflare.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'colors/base16-solarflare.vim') diff --git a/colors/base16-solarflare.vim b/colors/base16-solarflare.vim index 2f2f338..d2855b4 100644 --- a/colors/base16-solarflare.vim +++ b/colors/base16-solarflare.vim @@ -150,8 +150,8 @@ let g:colors_name = "base16-solarflare" " Highlighting function " Optional variables are attributes and guisp function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...) - let a:attr = get(a:, 1, "") - let a:guisp = get(a:, 2, "") + let l:attr = get(a:, 1, "") + let l:guisp = get(a:, 2, "") if a:guifg != "" exec "hi " . a:group . " guifg=#" . a:guifg @@ -165,11 +165,11 @@ function! g:Base16hi(group, guifg, guibg, ctermfg, ctermbg, ...) if a:ctermbg != "" exec "hi " . a:group . " ctermbg=" . a:ctermbg endif - if a:attr != "" - exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr + if l:attr != "" + exec "hi " . a:group . " gui=" . l:attr . " cterm=" . l:attr endif - if a:guisp != "" - exec "hi " . a:group . " guisp=#" . a:guisp + if l:guisp != "" + exec "hi " . a:group . " guisp=#" . l:guisp endif endfunction -- cgit v1.2.3