diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-10-16 00:05:35 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-10-17 01:51:21 +0200 |
commit | 014bd59957beb3f94cfb014a7acde3d2544bdfd9 (patch) | |
tree | c656cb11fa698383d087c196158ba12e7689f8da /runtime | |
parent | d5d7a9928da8d670e94a9e5e08d6814759b702b6 (diff) | |
download | rneovim-014bd59957beb3f94cfb014a7acde3d2544bdfd9.tar.gz rneovim-014bd59957beb3f94cfb014a7acde3d2544bdfd9.tar.bz2 rneovim-014bd59957beb3f94cfb014a7acde3d2544bdfd9.zip |
ex_checkhealth: call health#check() directly
This allows us to remove :CheckHealth later (avoids wildmenu noise).
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/health.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/autoload/health.vim b/runtime/autoload/health.vim index 028b6cca8e..b076f2456b 100644 --- a/runtime/autoload/health.vim +++ b/runtime/autoload/health.vim @@ -159,7 +159,10 @@ endfunction " Translates a list of plugin names to healthcheck function names. function! s:to_fn_names(plugin_names) abort let healthchecks = [] - for p in a:plugin_names + let plugin_names = type('') ==# type(a:plugin_names) + \ ? split(a:plugin_names, '', v:false) + \ : a:plugin_names + for p in plugin_names call add(healthchecks, 'health#'.p.'#check') endfor return healthchecks |