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 /src | |
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 'src')
-rw-r--r-- | src/nvim/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 986c4a9a17..aab777955c 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -22870,9 +22870,9 @@ void ex_checkhealth(exarg_T *eap) } } - size_t bufsize = STRLEN(eap->arg) + strlen("CheckHealth ") + 1; + size_t bufsize = STRLEN(eap->arg) + sizeof("call health#check('')"); char *buf = xmalloc(bufsize); - snprintf(buf, bufsize, "CheckHealth %s", eap->arg); + snprintf(buf, bufsize, "call health#check('%s')", eap->arg); do_cmdline_cmd(buf); |