summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-12-14 10:47:12 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-12-14 10:47:12 +0000
commitf46578ee01319901be29eafa39d29d4dc0db8fb1 (patch)
tree771beacad61c68ef0bc8572e1c02c8c896f3ef61 /usr.bin/tmux/status.c
parentd9d503c04f5e5d9943aa2296e23cbbfeace1258a (diff)
Add server options to completion as well.
Diffstat (limited to 'usr.bin/tmux/status.c')
-rw-r--r--usr.bin/tmux/status.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index b7e16b3775a..c4d8008d816 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.55 2009/12/03 22:50:10 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.56 2009/12/14 10:47:11 nicm 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);