diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-12-14 10:47:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-12-14 10:47:11 +0000 |
commit | 84d2e6c8a0f7c501c3d326eb2bcbbbd8caa1658b (patch) | |
tree | 03c78180e629daa6050064291da26d92a977db3a /status.c | |
parent | 30962cb2008a5f699bdf3e1da01a2554c53b8062 (diff) | |
download | rtmux-84d2e6c8a0f7c501c3d326eb2bcbbbd8caa1658b.tar.gz rtmux-84d2e6c8a0f7c501c3d326eb2bcbbbd8caa1658b.tar.bz2 rtmux-84d2e6c8a0f7c501c3d326eb2bcbbbd8caa1658b.zip |
Add server options to completion as well.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |