aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/autoload/health.vim4
-rw-r--r--runtime/lua/vim/health.lua2
2 files changed, 4 insertions, 2 deletions
diff --git a/runtime/autoload/health.vim b/runtime/autoload/health.vim
index 1c414377f6..a7dbedab08 100644
--- a/runtime/autoload/health.vim
+++ b/runtime/autoload/health.vim
@@ -1,7 +1,9 @@
function! s:deprecate(type) abort
let deprecate = v:lua.vim.deprecate('health#report_' . a:type, 'vim.health.' . a:type, '0.11')
redraw | echo 'Running healthchecks...'
- call v:lua.vim.health.warn(deprecate)
+ if deprecate isnot v:null
+ call v:lua.vim.health.warn(deprecate)
+ endif
endfunction
function! health#report_start(name) abort
diff --git a/runtime/lua/vim/health.lua b/runtime/lua/vim/health.lua
index 04f8f9695b..ff338b95ea 100644
--- a/runtime/lua/vim/health.lua
+++ b/runtime/lua/vim/health.lua
@@ -266,7 +266,7 @@ function M._check(plugin_names)
M.error('No healthcheck found for "' .. name .. '" plugin.')
end
if type == 'v' then
- vim.cmd.call(func, {})
+ vim.fn.call(func, {})
else
local f = assert(loadstring(func))
local ok, output = pcall(f)