summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorShougo <Shougo.Matsu@gmail.com>2016-07-17 12:22:14 +0900
committerGitHub <noreply@github.com>2016-07-17 12:22:14 +0900
commit5be60712f18eaa27aac8b87862eb61936a081369 (patch)
tree883d7d823f2c72aa71dcaf7f7caf8aa0a76371f1 /autoload
parent38cf1864df39d0f4c40967146223f0663a8413af (diff)
downloaddeoplete.nvim-5be60712f18eaa27aac8b87862eb61936a081369.zip
Revert "Use a timer thread to handle delayed completion"
Diffstat (limited to 'autoload')
-rw-r--r--autoload/deoplete/handler.vim16
1 files changed, 4 insertions, 12 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim
index 3983f14..fb27120 100644
--- a/autoload/deoplete/handler.vim
+++ b/autoload/deoplete/handler.vim
@@ -11,8 +11,8 @@ function! deoplete#handler#_init() abort "{{{
autocmd CompleteDone * call s:complete_done()
autocmd InsertCharPre * call s:on_insert_char_pre()
- autocmd TextChangedI * call s:completion_begin("TextChangedI", 0)
- autocmd InsertEnter * call s:completion_begin("InsertEnter", 0)
+ autocmd TextChangedI * call s:completion_begin("TextChangedI")
+ autocmd InsertEnter * call s:completion_begin("InsertEnter")
augroup END
for event in [
@@ -24,14 +24,10 @@ function! deoplete#handler#_init() abort "{{{
call s:on_event('')
endfunction"}}}
-function! deoplete#handler#_delay_trigger() abort "{{{
- call s:completion_begin('TextChangedI', 1)
-endfunction"}}}
-
-function! s:completion_begin(event, delayed) abort "{{{
+function! s:completion_begin(event) abort "{{{
let context = deoplete#init#_context(a:event, [])
- if !a:delayed && s:is_skip(a:event, context)
+ if s:is_skip(a:event, context)
return
endif
@@ -40,10 +36,6 @@ function! s:completion_begin(event, delayed) abort "{{{
let g:deoplete#_context.refresh = 0
- if a:delayed
- let context.delay = 0
- endif
-
" Call omni completion
for filetype in context.filetypes
for pattern in deoplete#util#convert2list(