mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 17:36:22 +00:00
Plugins: Added completer_remove
This commit is contained in:
@@ -66,6 +66,20 @@ autocompleters_add(const char *key, char **items)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
autocompleters_remove(const char *key, char **items)
|
||||
{
|
||||
if (!g_hash_table_contains(autocompleters, key)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Autocomplete ac = g_hash_table_lookup(autocompleters, key);
|
||||
int i = 0;
|
||||
for (i = 0; i < g_strv_length(items); i++) {
|
||||
autocomplete_remove(ac, items[i]);
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
autocompleters_complete(const char * const input)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user