- Updated vital.
This commit is contained in:
parent
382d86577d
commit
4ee658007c
@ -146,9 +146,12 @@ function! s:_build_module(sid)
|
|||||||
return copy(s:loaded[a:sid])
|
return copy(s:loaded[a:sid])
|
||||||
endif
|
endif
|
||||||
let prefix = '<SNR>' . a:sid . '_'
|
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 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 = {}
|
let module = {}
|
||||||
for func in functions
|
for func in functions
|
@ -1,3 +1,3 @@
|
|||||||
821d01d
|
897c317
|
||||||
|
|
||||||
Prelude
|
Prelude
|
||||||
|
Loading…
Reference in New Issue
Block a user