diff options
author | nicm <nicm> | 2015-11-20 12:01:19 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-11-20 12:01:19 +0000 |
commit | fce56c56efc57e80cc3ed755c192cf88822ebf0e (patch) | |
tree | ac91bccebcaebc7738e248e4f0564e6ad52078d0 /status.c | |
parent | 374e273df5f66e90e06f60617495446facfbd4f3 (diff) | |
download | rtmux-fce56c56efc57e80cc3ed755c192cf88822ebf0e.tar.gz rtmux-fce56c56efc57e80cc3ed755c192cf88822ebf0e.tar.bz2 rtmux-fce56c56efc57e80cc3ed755c192cf88822ebf0e.zip |
Instead of separate tables for different types of options, give each
option a scope type (server, session, window) in one table.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -1205,19 +1205,7 @@ status_prompt_complete_list(u_int *size, const char *s) list[(*size)++] = (*cmdent)->name; } } - for (oe = server_options_table; oe->name != NULL; oe++) { - if (strncmp(oe->name, s, strlen(s)) == 0) { - list = xreallocarray(list, (*size) + 1, sizeof *list); - list[(*size)++] = oe->name; - } - } - for (oe = session_options_table; oe->name != NULL; oe++) { - if (strncmp(oe->name, s, strlen(s)) == 0) { - list = xreallocarray(list, (*size) + 1, sizeof *list); - list[(*size)++] = oe->name; - } - } - for (oe = window_options_table; oe->name != NULL; oe++) { + for (oe = options_table; oe->name != NULL; oe++) { if (strncmp(oe->name, s, strlen(s)) == 0) { list = xreallocarray(list, (*size) + 1, sizeof *list); list[(*size)++] = oe->name; |