diff options
author | Daniel Hahler <git@thequod.de> | 2015-05-04 22:14:54 +0200 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-06-09 10:29:46 +0300 |
commit | 866e587b88715e3c10a706687f52a54516721662 (patch) | |
tree | eb95abf346cdddac94f26c7e808a106cbbdd3fda /runtime/autoload/provider/python.vim | |
parent | 3b0ec6599cfe6ce56711e89ddf8688416897afb7 (diff) | |
download | rneovim-866e587b88715e3c10a706687f52a54516721662.tar.gz rneovim-866e587b88715e3c10a706687f52a54516721662.tar.bz2 rneovim-866e587b88715e3c10a706687f52a54516721662.zip |
provider/python: define Prog and Error functions always
`provider#pythonX#Error` and `provider#pythonX#Prog` are currently meant
for debugging only (the error message is not being used), and should
therefore be defined always, especially in case of errors.
Ref: https://github.com/neovim/neovim/pull/2549#issuecomment-98607580
Diffstat (limited to 'runtime/autoload/provider/python.vim')
-rw-r--r-- | runtime/autoload/provider/python.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/autoload/provider/python.vim b/runtime/autoload/provider/python.vim index 4c43c8a613..5ce636c324 100644 --- a/runtime/autoload/provider/python.vim +++ b/runtime/autoload/provider/python.vim @@ -10,10 +10,6 @@ endif let g:loaded_python_provider = 1 let [s:prog, s:err] = provider#pythonx#Detect(2) -if s:prog == '' - " Detection failed - finish -endif function! provider#python#Prog() return s:prog @@ -23,6 +19,11 @@ function! provider#python#Error() return s:err endfunction +if s:prog == '' + " Detection failed + finish +endif + let s:plugin_path = expand('<sfile>:p:h').'/script_host.py' " The Python provider plugin will run in a separate instance of the Python |