Plugins: Added completer_clear

This commit is contained in:
James Booth
2016-04-07 23:25:47 +01:00
parent 7ca6084657
commit 2f432a942d
8 changed files with 45 additions and 0 deletions

View File

@@ -80,6 +80,17 @@ autocompleters_remove(const char *key, char **items)
}
}
void
autocompleters_clear(const char *key)
{
if (!g_hash_table_contains(autocompleters, key)) {
return;
}
Autocomplete ac = g_hash_table_lookup(autocompleters, key);
autocomplete_clear(ac);
}
char *
autocompleters_complete(const char * const input)
{