Add server options to completion as well.

pull/1/head
Nicholas Marriott 2009-12-14 10:47:11 +00:00
parent 30962cb200
commit 84d2e6c8a0
1 changed files with 4 additions and 0 deletions

View File

@ -1130,6 +1130,10 @@ status_prompt_complete(const char *s)
if (strncmp((*cmdent)->name, s, strlen(s)) == 0)
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++) {
if (strncmp(entry->name, s, strlen(s)) == 0)
ARRAY_ADD(&list, entry->name);