From 8b917be8cc7d9cc75066228ec1cb92c643b2bbce Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 5 Apr 2020 11:13:42 +0900 Subject: Close the popup if skipped --- autoload/deoplete/handler.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'autoload/deoplete/handler.vim') 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("\_", 'i') + endif return endif -- cgit v1.2.3