summaryrefslogtreecommitdiff
path: root/autoload/deoplete.vim
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2017-09-12 09:01:45 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2017-09-12 09:01:45 +0900
commit8ba6baaad8efbfa79861a365ed5d88dbe118d395 (patch)
tree3ded9d458800d480f52e9a950995c1ea194824a1 /autoload/deoplete.vim
parent91b5a10cae26718e44b3fb80a9904198350522e6 (diff)
downloaddeoplete.nvim-8ba6baaad8efbfa79861a365ed5d88dbe118d395.zip
Fix #539 deoplete#toggle()
Diffstat (limited to 'autoload/deoplete.vim')
-rw-r--r--autoload/deoplete.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/deoplete.vim b/autoload/deoplete.vim
index 709e4c1..585a663 100644
--- a/autoload/deoplete.vim
+++ b/autoload/deoplete.vim
@@ -17,8 +17,9 @@ function! deoplete#disable() abort
return deoplete#init#_disable()
endfunction
function! deoplete#toggle() abort
+ call deoplete#initialize()
return deoplete#init#_is_enabled() ?
- \ deoplete#disable() : deoplete#enable()
+ \ deoplete#init#_disable() : deoplete#init#_enable()
endfunction
function! deoplete#enable_logging(level, logfile) abort