summaryrefslogtreecommitdiff
path: root/autoload/deoplete.vim
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2018-07-16 20:27:24 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2018-07-16 20:27:24 +0900
commit96fb777feeb2ddec46539cba2df501239db6512e (patch)
tree0dd13e4c90fb3286ba24bc6b6bc7e3302ed4057d /autoload/deoplete.vim
parent1fe1e88fe9873f65762230744afc96e44c3622d5 (diff)
downloaddeoplete.nvim-96fb777feeb2ddec46539cba2df501239db6512e.zip
Add sources in deoplete#send_event()
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r--autoload/deoplete.vim5
1 files changed, 3 insertions, 2 deletions
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