From 4ca31eb271316c27f8783a8813c0391279f0a448 Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 13 May 2016 23:31:28 +0900 Subject: [PATCH] update lightline#init: use call function instead of eval function --- autoload/lightline.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/lightline.vim b/autoload/lightline.vim index c9129ed..d351025 100644 --- a/autoload/lightline.vim +++ b/autoload/lightline.vim @@ -2,7 +2,7 @@ " Filename: autoload/lightline.vim " Author: itchyny " License: MIT License -" Last Change: 2016/05/08 13:50:23. +" Last Change: 2016/05/13 23:30:54. " ============================================================================= let s:save_cpo = &cpo @@ -174,10 +174,10 @@ function! lightline#init() abort let &tabline = get(s:, '_tabline', '') endif for f in values(s:lightline.component_function) - silent! call eval(f . '()') + silent! call call(f, []) endfor for f in values(s:lightline.tab_component_function) - silent! call eval(f . '(0)') + silent! call call(f, [1]) endfor let s:mode = '' endfunction