Skip to content

Commit

Permalink
fix for working on vim8
Browse files Browse the repository at this point in the history
  • Loading branch information
roxma committed Oct 15, 2017
1 parent bf1971c commit 10b3b58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions autoload/deoplete/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function! deoplete#init#_channel() abort
endif

let s:deoplete = yarp#py3('deoplete')
let g:_deoplete = s:deoplete

call s:deoplete.notify('deoplete_init')
return
Expand Down
5 changes: 2 additions & 3 deletions autoload/deoplete/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,13 @@ function! deoplete#util#rpcnotify(...) abort
endif

if !exists('s:logged') && !empty(g:deoplete#_logging)
call rpcnotify(g:deoplete#_channel_id,
\ 'deoplete_enable_logging',
call g:_deoplete.notify('deoplete_enable_logging',
\ g:deoplete#_logging.level, g:deoplete#_logging.logfile)
let g:deoplete#_logging = {}
let s:logged = 1
endif

call call('rpcnotify', [g:deoplete#_channel_id] + a:000)
call call(g:_deoplete.notify, a:000, g:_deoplete)
return ''
endfunction

Expand Down

0 comments on commit 10b3b58

Please sign in to comment.