aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-16 12:26:13 +0200
committerGitHub <noreply@github.com>2023-04-16 12:26:13 +0200
commitb0978fca6b82a061b345df43745c3ab860e02b58 (patch)
treea7e51a6a5fa14e9d91f44e5c873c98189144af9b /runtime/autoload
parent2f779b94e7fe0fb2fba00dd8e644c60605e83179 (diff)
downloadrneovim-b0978fca6b82a061b345df43745c3ab860e02b58.tar.gz
rneovim-b0978fca6b82a061b345df43745c3ab860e02b58.tar.bz2
rneovim-b0978fca6b82a061b345df43745c3ab860e02b58.zip
fix(checkhealth): fix crash due to incorrect argument type
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/health.vim4
1 files changed, 3 insertions, 1 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