mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-14 06:23:51 -05:00
update lightline#init: use call function instead of eval function
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
" Filename: autoload/lightline.vim
|
" Filename: autoload/lightline.vim
|
||||||
" Author: itchyny
|
" Author: itchyny
|
||||||
" License: MIT License
|
" License: MIT License
|
||||||
" Last Change: 2016/05/08 13:50:23.
|
" Last Change: 2016/05/13 23:30:54.
|
||||||
" =============================================================================
|
" =============================================================================
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@@ -174,10 +174,10 @@ function! lightline#init() abort
|
|||||||
let &tabline = get(s:, '_tabline', '')
|
let &tabline = get(s:, '_tabline', '')
|
||||||
endif
|
endif
|
||||||
for f in values(s:lightline.component_function)
|
for f in values(s:lightline.component_function)
|
||||||
silent! call eval(f . '()')
|
silent! call call(f, [])
|
||||||
endfor
|
endfor
|
||||||
for f in values(s:lightline.tab_component_function)
|
for f in values(s:lightline.tab_component_function)
|
||||||
silent! call eval(f . '(0)')
|
silent! call call(f, [1])
|
||||||
endfor
|
endfor
|
||||||
let s:mode = ''
|
let s:mode = ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user