summaryrefslogtreecommitdiff
path: root/autoload/deoplete/handler.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/deoplete/handler.vim')
-rw-r--r--autoload/deoplete/handler.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim
index 3fc9684..dfcd507 100644
--- a/autoload/deoplete/handler.vim
+++ b/autoload/deoplete/handler.vim
@@ -75,6 +75,9 @@ function! deoplete#handler#_do_complete() abort
endif
if auto_popup
+ " Note: completeopt must be changed before complete()
+ call deoplete#mapping#_set_completeopt(g:deoplete#_context.is_async)
+
call feedkeys("\<Plug>_", 'i')
endif
endfunction