health.vim: "No healthchecks found" also needs the buffer.

This commit is contained in:
Justin M. Keyes 2016-09-05 19:42:28 -04:00
parent 522b885a0d
commit df99c6493d

View File

@ -22,13 +22,13 @@ function! health#check(plugin_names) abort
\ ? s:discover_health_checks()
\ : s:to_fn_names(a:plugin_names)
if empty(healthchecks)
call setline(1, 'ERROR: No healthchecks found.')
else
tabnew
setlocal filetype=markdown bufhidden=wipe
call s:enhance_syntax()
if empty(healthchecks)
call setline(1, 'ERROR: No healthchecks found.')
else
redraw|echo 'Running healthchecks...'
for c in healthchecks
let output = ''