mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-10 05:22:31 +08:00
Fix a bug which breaks the tests
This commit is contained in:
@@ -130,9 +130,13 @@ function! ale#util#FunctionArgCount(function) abort
|
||||
let l:Function = ale#util#GetFunction(a:function)
|
||||
|
||||
redir => l:output
|
||||
silent function Function
|
||||
silent! function Function
|
||||
redir END
|
||||
|
||||
if !exists('l:output')
|
||||
return 0
|
||||
endif
|
||||
|
||||
let l:match = matchstr(split(l:output, "\n")[0], '\v\([^)]+\)')[1:-2]
|
||||
let l:arg_list = filter(split(l:match, ', '), 'v:val !=# ''...''')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user