Add server options to completion as well.

This commit is contained in:
Nicholas Marriott 2009-12-14 10:47:11 +00:00
parent 30962cb200
commit 84d2e6c8a0

View File

@ -1130,6 +1130,10 @@ status_prompt_complete(const char *s)
if (strncmp((*cmdent)->name, s, strlen(s)) == 0) if (strncmp((*cmdent)->name, s, strlen(s)) == 0)
ARRAY_ADD(&list, (*cmdent)->name); ARRAY_ADD(&list, (*cmdent)->name);
} }
for (entry = set_option_table; entry->name != NULL; entry++) {
if (strncmp(entry->name, s, strlen(s)) == 0)
ARRAY_ADD(&list, entry->name);
}
for (entry = set_session_option_table; entry->name != NULL; entry++) { for (entry = set_session_option_table; entry->name != NULL; entry++) {
if (strncmp(entry->name, s, strlen(s)) == 0) if (strncmp(entry->name, s, strlen(s)) == 0)
ARRAY_ADD(&list, entry->name); ARRAY_ADD(&list, entry->name);