diff options
author | Daniel Hahler <git@thequod.de> | 2019-09-17 15:39:53 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-09-17 15:39:53 +0200 |
commit | ad5cbaa521643ab543f233e93371e55de75867d3 (patch) | |
tree | c14da5d7b586f785ff561ae257f28fff1e0916c3 /autoload | |
parent | 8df5ca1a9db11d919f3426f4d05b281be8913c89 (diff) | |
download | deoplete.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.vim | 2 |
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 |