From 96fb777feeb2ddec46539cba2df501239db6512e Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 16 Jul 2018 20:27:24 +0900 Subject: Add sources in deoplete#send_event() --- autoload/deoplete.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'autoload/deoplete.vim') diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim index d647795..a11c18f 100644 --- a/autoload/deoplete.vim +++ b/autoload/deoplete.vim @@ -38,9 +38,10 @@ function! deoplete#enable_logging(level, logfile) abort call deoplete#util#rpcnotify('deoplete_enable_logging', {}) endfunction -function! deoplete#send_event(event) abort +function! deoplete#send_event(event, ...) abort + let sources = get(a:000, 0, []) call deoplete#util#rpcnotify('deoplete_on_event', - \ deoplete#init#_context(a:event, [])) + \ deoplete#init#_context(a:event, sources)) endfunction function! deoplete#manual_complete(...) abort -- cgit v1.2.3