summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-12-16 01:10:36 +0000
committerTiago Cunha <tcunha@gmx.com>2009-12-16 01:10:36 +0000
commit6f578a434b23c5085b4ce9ed805959a7c7739e91 (patch)
tree1a3d93a48abdefefd43f08a08b7467f3a0f1d4e1 /status.c
parent90d40e27daaf2d2e5e0ebeffa8b5865d9536df80 (diff)
Sync OpenBSD patchset 588:
Add server options to completion as well.
Diffstat (limited to 'status.c')
-rw-r--r--status.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/status.c b/status.c
index e1dcd403..9242a1ed 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.140 2009-12-04 22:14:47 tcunha Exp $ */
+/* $Id: status.c,v 1.141 2009-12-16 01:10:36 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);