From 0d00b994dc6a729717a99a4b0c2a29a400c8d19c Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 13 Oct 2020 19:14:20 +0900 Subject: Fix for popup flicker --- autoload/deoplete/handler.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'autoload/deoplete/handler.vim') diff --git a/autoload/deoplete/handler.vim b/autoload/deoplete/handler.vim index 2d3bfc4..4c2fcbb 100644 --- a/autoload/deoplete/handler.vim +++ b/autoload/deoplete/handler.vim @@ -203,6 +203,13 @@ function! deoplete#handler#_completion_begin(event) abort call deoplete#util#rpcnotify( \ 'deoplete_auto_completion_begin', {'event': a:event}) + + let auto_popup = deoplete#custom#_get_option( + \ 'auto_complete_popup') !=# 'manual' + if auto_popup || deoplete#util#check_popup() + " For popup flicker + call feedkeys("\_", 'i') + endif endfunction function! s:is_skip(event) abort if a:event ==# 'TextChangedP' && !empty(v:completed_item) -- cgit v1.2.3