diff options
author | Yoshio S <IMOKURI@users.noreply.github.com> | 2019-09-22 08:17:22 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-21 16:17:22 -0700 |
commit | 45447e3b647259d78434798ddd9c2ae245dcdbcc (patch) | |
tree | 024798ef591d67d891eddad16737c45073567d9c | |
parent | ad0f97f4123b3b84e0f0883afce305d20aec954a (diff) | |
download | rneovim-45447e3b647259d78434798ddd9c2ae245dcdbcc.tar.gz rneovim-45447e3b647259d78434798ddd9c2ae245dcdbcc.tar.bz2 rneovim-45447e3b647259d78434798ddd9c2ae245dcdbcc.zip |
checkhealth: skip python checks if intentionally disabled #11044
close #11040
-rw-r--r-- | runtime/autoload/health/provider.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index f1238edbde..f52c2c2cbf 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -276,7 +276,11 @@ function! s:check_python(version) abort let python_multiple = [] if exists(loaded_var) && !exists('*provider#'.pyname.'#Call') - call health#report_info('Disabled ('.loaded_var.'='.eval(loaded_var).'). This might be due to some previous error.') + let v = eval(loaded_var) + call health#report_info('Disabled ('.loaded_var.'='.v.').'.(0 is v ? '' : ' This might be due to some previous error.')) + if 0 is v + return + endif endif let [pyenv, pyenv_root] = s:check_for_pyenv() |