summaryrefslogtreecommitdiff
path: root/autoload/deoplete.vim
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-08-15 15:55:15 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-08-15 15:55:15 +0900
commit5ed95c28ee5198e886608984ea299aca535e2b88 (patch)
tree624f3faaa74a1ad87f481b3865735b476a6b00bb /autoload/deoplete.vim
parentcb7cef8c26a524bf1448221a624276037f09ae71 (diff)
downloaddeoplete.nvim-5ed95c28ee5198e886608984ea299aca535e2b88.zip
Fix refresh error
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r--autoload/deoplete.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim
index cccecc6..4fe34d6 100644
--- a/autoload/deoplete.vim
+++ b/autoload/deoplete.vim
@@ -57,7 +57,7 @@ function! deoplete#cancel_popup() abort "{{{
endfunction"}}}
function! deoplete#refresh() abort "{{{
let g:deoplete#_context.refresh = 1
- if g:deoplete#_context.event ==# 'Manual'
+ if get(g:deoplete#_context, 'event', '') ==# 'Manual'
let g:deoplete#_context.event = 'Refresh'
endif
return pumvisible() ? "\<C-e>" : ''