diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2020-04-06 21:33:48 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2020-04-06 21:33:48 +0900 |
commit | 18704083452e14f3b84b5df127ecb3ce5f8552a8 (patch) | |
tree | 9418dcdc0634ebba18627b2562e9c80aa2bb6d1d /autoload | |
parent | e63d4d80a2ca686fa335cc1901931d7579474b1d (diff) | |
download | deoplete.nvim-18704083452e14f3b84b5df127ecb3ce5f8552a8.zip |
Fix close popup error when skipped text
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/deoplete/handler.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim index 737c929..61fe91a 100644 --- a/autoload/deoplete/handler.vim +++ b/autoload/deoplete/handler.vim @@ -199,11 +199,6 @@ 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 @@ -222,6 +217,11 @@ function! s:is_skip(event) abort endif if s:is_skip_text(a:event) + " Close the popup + if deoplete#util#check_popup() + call feedkeys("\<Plug>_", 'i') + endif + return 1 endif |