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:discover_health_checks()
\ : s:to_fn_names(a:plugin_names) \ : s:to_fn_names(a:plugin_names)
tabnew
setlocal filetype=markdown bufhidden=wipe
call s:enhance_syntax()
if empty(healthchecks) if empty(healthchecks)
call setline(1, 'ERROR: No healthchecks found.') call setline(1, 'ERROR: No healthchecks found.')
else else
tabnew
setlocal filetype=markdown bufhidden=wipe
call s:enhance_syntax()
redraw|echo 'Running healthchecks...' redraw|echo 'Running healthchecks...'
for c in healthchecks for c in healthchecks
let output = '' let output = ''