diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-14 10:47:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-12-14 10:47:12 +0000 |
commit | f46578ee01319901be29eafa39d29d4dc0db8fb1 (patch) | |
tree | 771beacad61c68ef0bc8572e1c02c8c896f3ef61 /usr.bin/tmux/status.c | |
parent | d9d503c04f5e5d9943aa2296e23cbbfeace1258a (diff) |
Add server options to completion as well.
Diffstat (limited to 'usr.bin/tmux/status.c')
-rw-r--r-- | usr.bin/tmux/status.c | 6 |
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); |