summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 804d5c1..d4af194 100644
--- a/autoload/deoplete/handler.vim
+++ b/autoload/deoplete/handler.vim
@@ -68,6 +68,11 @@ function! deoplete#handler#_do_complete() abort
let auto_popup = deoplete#custom#_get_option(
\ 'auto_complete_popup') !=# 'manual'
+ " Enable auto refresh when popup is displayed
+ if exists('*complete_info') && complete_info().mode ==# 'eval'
+ let auto_popup = v:true
+ endif
+
if context.event ==# 'Manual'
let context.event = ''
elseif !exists('g:deoplete#_saved_completeopt') && auto_popup