From 51f679d977456fad0c65f1ff1b1cbee44894b1f1 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 14 Oct 2018 17:23:31 +0900 Subject: Improve context initialization --- autoload/deoplete.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload/deoplete.vim') diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim index 6a4c50d..117ed60 100644 --- a/autoload/deoplete.vim +++ b/autoload/deoplete.vim @@ -42,9 +42,9 @@ endfunction function! deoplete#send_event(event, ...) abort let g:deoplete#_cached_context = deoplete#init#_cached_context() - let sources = get(a:000, 0, []) + let sources = deoplete#util#convert2list(get(a:000, 0, [])) call deoplete#util#rpcnotify('deoplete_on_event', - \ deoplete#init#_context(a:event, sources)) + \ {'event': a:event, 'sources': sources}) endfunction function! deoplete#manual_complete(...) abort -- cgit v1.2.3