Only complete unloaded plugins on /plugins load

This commit is contained in:
James Booth
2016-04-12 23:25:31 +01:00
parent 1a73aa39cb
commit 46687aeced
3 changed files with 12 additions and 11 deletions

View File

@@ -3761,7 +3761,7 @@ _plugins_autocomplete(ProfWin *window, const char *const input)
if ((strncmp(input, "/plugins load ", 14) == 0) && (strlen(input) > 14)) {
if (plugins_load_ac == NULL) {
plugins_load_ac = autocomplete_new();
GSList *plugins = plugins_file_list();
GSList *plugins = plugins_unloaded_list();
GSList *curr = plugins;
while (curr) {
autocomplete_add(plugins_load_ac, curr->data);