Fix a bug which breaks the tests

This commit is contained in:
w0rp
2017-06-07 09:26:54 +01:00
parent f30652a98f
commit 11e38efa83
2 changed files with 9 additions and 4 deletions

View File

@@ -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 !=# ''...''')