add plugin clear command to unload all loaded plugins

This commit is contained in:
Axel Kohlmeyer
2021-03-13 12:40:04 -05:00
parent 79d438e090
commit 88760fa648
5 changed files with 28 additions and 7 deletions

View File

@ -350,7 +350,7 @@ static char *variable_expand_generator(const char *text, int state)
static char *plugin_generator(const char *text, int state)
{
const char *subcmd[] = {"load", "unload", "list", NULL};
const char *subcmd[] = {"load", "unload", "list", "clear", NULL};
const char *sub;
static std::size_t idx, len;
if (!state) idx = 0;