aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Wennberg <daniel.wennberg@gmail.com>2019-02-15 14:12:00 -0800
committerDaniel Wennberg <daniel.wennberg@gmail.com>2019-02-15 14:12:00 -0800
commita40a4514ce82619e32028d39966a2fa61ebbf7e4 (patch)
treea09e90223bbbc4cb176ad70fb5c2200e9f96faef /templates
parent2073e2dd9fa0172ccdba92b3f0df25642a69f7db (diff)
Use local variables, don't modify a: dict
Diffstat (limited to 'templates')
-rw-r--r--templates/default.mustache12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/default.mustache b/templates/default.mustache
index 340394e..a7ac96b 100644
--- a/templates/default.mustache
+++ b/templates/default.mustache
@@ -150,8 +150,8 @@ let g:colors_name = "base16-{{scheme-slug}}"
" 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