ex_checkhealth: call health#check() directly

This allows us to remove :CheckHealth later (avoids wildmenu noise).
This commit is contained in:
Justin M. Keyes
2017-10-16 00:05:35 +02:00
parent d5d7a9928d
commit 014bd59957
2 changed files with 6 additions and 3 deletions

View File

@@ -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);