diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2019-03-30 22:15:00 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2019-03-30 22:15:00 +0900 |
commit | 2b30f081985a0b8d7a50f00b66484dec24fbc6f6 (patch) | |
tree | 6fe7d64a4f7c4fe10be0803448facfb3c0eb4239 /autoload/deoplete/mapping.vim | |
parent | 65ccb5eaf7f957c921b008dbc94c568b7c03b695 (diff) | |
download | deoplete.nvim-2b30f081985a0b8d7a50f00b66484dec24fbc6f6.zip |
Fix for Vim 8.1.1068
Diffstat (limited to 'autoload/deoplete/mapping.vim')
-rw-r--r-- | autoload/deoplete/mapping.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/deoplete/mapping.vim b/autoload/deoplete/mapping.vim index 08d6dcb..79b3457 100644 --- a/autoload/deoplete/mapping.vim +++ b/autoload/deoplete/mapping.vim @@ -15,8 +15,8 @@ function! deoplete#mapping#_dummy(func) abort return "\<C-r>=".a:func."()\<CR>" endfunction function! s:check_completion_mode() abort - return exists('*complete_mode') && - \ (pumvisible() && complete_mode() !=# 'eval') + return exists('*complete_info') && + \ (pumvisible() && get(complete_info(), 'mode', '') !=# 'eval') endfunction function! deoplete#mapping#_complete() abort if s:check_completion_mode() |