Skip to content

Commit 04032c2

Browse files
committed
Namespace test functions in function dictionaries
1 parent 5f2da12 commit 04032c2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

autoload/OmniSharp/util.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ function! OmniSharp#util#AwaitSequence(Funcs, OnAllComplete, ...) abort
6868
\}
6969
endif
7070

71-
let Func = remove(a:Funcs, 0)
71+
" If the Func has been declared as a dictionary function, then it must be
72+
" called as a dictionary function:
73+
" function s:run.test()
74+
let dict = { 'f': remove(a:Funcs, 0) }
7275
let state.OnComplete = function('OmniSharp#util#AwaitSequence', [a:Funcs, a:OnAllComplete])
73-
call Func(function('s:AwaitFuncComplete', [state]))
76+
call dict.f(function('s:AwaitFuncComplete', [state]))
7477
endfunction
7578

7679
function! s:AwaitFuncComplete(state, ...) abort

0 commit comments

Comments
 (0)