summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/deoplete/mappings.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/autoload/deoplete/mappings.vim b/autoload/deoplete/mappings.vim
index 7b44a00..c4fc223 100644
--- a/autoload/deoplete/mappings.vim
+++ b/autoload/deoplete/mappings.vim
@@ -63,7 +63,9 @@ function! deoplete#mappings#cancel_popup() abort "{{{
endfunction"}}}
function! deoplete#mappings#refresh() abort "{{{
let g:deoplete#_context.refresh = 1
- let g:deoplete#_context.event = 'Refresh'
+ if g:deoplete#_context.event ==# 'Manual'
+ let g:deoplete#_context.event = 'Refresh'
+ endif
return pumvisible() ? "\<C-e>" : ''
endfunction"}}}