summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2020-04-05 11:13:42 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2020-04-05 11:13:42 +0900
commit8b917be8cc7d9cc75066228ec1cb92c643b2bbce (patch)
tree638ae2b3eb1b6ed6e74853eed2fc83825dba4956 /autoload
parent36f83eb5cea68b7abfa31aa5f2cdfb1720502d91 (diff)
downloaddeoplete.nvim-8b917be8cc7d9cc75066228ec1cb92c643b2bbce.zip
Close the popup if skipped
Diffstat (limited to 'autoload')
-rw-r--r--autoload/deoplete/handler.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim
index 14b45ac..737c929 100644
--- a/autoload/deoplete/handler.vim
+++ b/autoload/deoplete/handler.vim
@@ -199,6 +199,11 @@ function! deoplete#handler#_completion_begin(event) abort
if s:is_skip(a:event)
let g:deoplete#_context.candidates = []
+
+ " Close the popup
+ if deoplete#util#check_popup()
+ call feedkeys("\<Plug>_", 'i')
+ endif
return
endif