summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-09-17 15:39:53 +0200
committerDaniel Hahler <git@thequod.de>2019-09-17 15:39:53 +0200
commitad5cbaa521643ab543f233e93371e55de75867d3 (patch)
treec14da5d7b586f785ff561ae257f28fff1e0916c3 /autoload
parent8df5ca1a9db11d919f3426f4d05b281be8913c89 (diff)
downloaddeoplete.nvim-ad5cbaa521643ab543f233e93371e55de75867d3.zip
Handle non-existing g:deoplete#_python_version_check
Fixes: > E121: Undefined variable: g:deoplete#_python_version_check When using a virtualenv and explicit python host config where "pynvim" is not installed. It would never set the variable then.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/deoplete/init.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/deoplete/init.vim b/autoload/deoplete/init.vim
index 5acdf6e..8925755 100644
--- a/autoload/deoplete/init.vim
+++ b/autoload/deoplete/init.vim
@@ -253,5 +253,5 @@ vim.vars['deoplete#_python_version_check'] = (
sys.version_info.minor,
sys.version_info.micro) < (3, 6, 1)
EOF
- return g:deoplete#_python_version_check
+ return get(g:, 'deoplete#_python_version_check', 0)
endfunction