skip function check (try...catch captures)

This commit is contained in:
itchyny
2016-03-21 15:49:33 +09:00
parent 4c80971765
commit 048da5eb2d

View File

@@ -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/03/21 15:09:56. " Last Change: 2016/03/21 15:48:38.
" ============================================================================= " =============================================================================
let s:save_cpo = &cpo let s:save_cpo = &cpo
@@ -364,7 +364,7 @@ endfunction
function! s:_expand(a, c, _, e, t, i, j, x) abort function! s:_expand(a, c, _, e, t, i, j, x) abort
try try
let r = exists('*'.a:e[a:x[a:i][a:j]]) ? eval(a:e[a:x[a:i][a:j]] . '()') : '' let r = eval(a:e[a:x[a:i][a:j]] . '()')
if type(r) == 1 && r ==# '' if type(r) == 1 && r ==# ''
return return
endif endif