From 84d2e6c8a0f7c501c3d326eb2bcbbbd8caa1658b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 14 Dec 2009 10:47:11 +0000 Subject: [PATCH] Add server options to completion as well. --- status.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/status.c b/status.c index 42382578..535044ad 100644 --- a/status.c +++ b/status.c @@ -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);