aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdd Barrett <vext01@gmail.com>2017-05-10 14:33:11 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-05-11 12:01:56 +0200
commitbc4fd8b10d3634f0b75f8e87dded7f6d7070eeae (patch)
tree9d0a388e134e52894ca83528318518138f9a00fc
parent32b422cf905573fd3cd990adf917746cb04ffb03 (diff)
downloadrneovim-bc4fd8b10d3634f0b75f8e87dded7f6d7070eeae.tar.gz
rneovim-bc4fd8b10d3634f0b75f8e87dded7f6d7070eeae.tar.bz2
rneovim-bc4fd8b10d3634f0b75f8e87dded7f6d7070eeae.zip
health.vim: Fix hardcoded `python` name. #6714
-rw-r--r--runtime/autoload/health/provider.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index c5826217c5..0aedfdca38 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -157,7 +157,7 @@ function! s:version_info(python) abort
\ ]))
if empty(python_version)
- let python_version = 'unable to parse python response'
+ let python_version = 'unable to parse '.a:python.' response'
endif
let nvim_path = s:trim(s:system([
@@ -176,7 +176,7 @@ function! s:version_info(python) abort
endfunction
" Try to get neovim.VERSION (added in 0.1.11dev).
- let nvim_version = s:system(['python', '-c',
+ let nvim_version = s:system([a:python, '-c',
\ 'from neovim import VERSION as v; '.
\ 'print("{}.{}.{}{}".format(v.major, v.minor, v.patch, v.prerelease))'],
\ '', 1, 1)