- Updated vital.

This commit is contained in:
Shougo Matsushita 2013-10-01 10:07:11 +09:00
parent 382d86577d
commit 4ee658007c
3 changed files with 6 additions and 3 deletions

View File

@ -146,9 +146,12 @@ function! s:_build_module(sid)
return copy(s:loaded[a:sid])
endif
let prefix = '<SNR>' . a:sid . '_'
let funcs = s:_redir("function /^\<SNR>" . a:sid . '_')
let funcs = s:_redir('function')
let filter_pat = '^\s*function ' . prefix
let map_pat = prefix . '\zs\w\+'
let functions = map(split(funcs, "\n"), 'matchstr(v:val, map_pat)')
let functions = map(filter(split(funcs, "\n"),
\ 'stridx(v:val, prefix) > 0 && v:val =~# filter_pat'),
\ 'matchstr(v:val, map_pat)')
let module = {}
for func in functions

View File

@ -1,3 +1,3 @@
821d01d
897c317
Prelude