diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-06-11 17:38:34 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-06-11 17:38:34 +0900 |
commit | ff4f9b861198093ac2989ced1088ffdca2e00c13 (patch) | |
tree | 68bb59ac6d5e7ef1f9a81d4c1a84a12c41a45857 | |
parent | fc074eb2730b3b89d7701ead267ed42337f09531 (diff) | |
download | deoplete.nvim-ff4f9b861198093ac2989ced1088ffdca2e00c13.zip |
Fix manual refresh problem
-rw-r--r-- | autoload/deoplete/mappings.vim | 4 |
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"}}} |