diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-02-01 10:01:20 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-02-01 10:01:20 +0000 |
commit | 0242513ce7ce3632fc7b30f8eac2c89bb77064ee (patch) | |
tree | 3c18ef664117260acc056d26b69104a70bbbb59d /options-table.c | |
parent | 545a610c6b14af2db02eb40866654f0df7ad2b6a (diff) | |
parent | 509221520c87510016f5c90aeea0d4dcc4b74a98 (diff) | |
download | rtmux-0242513ce7ce3632fc7b30f8eac2c89bb77064ee.tar.gz rtmux-0242513ce7ce3632fc7b30f8eac2c89bb77064ee.tar.bz2 rtmux-0242513ce7ce3632fc7b30f8eac2c89bb77064ee.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/options-table.c b/options-table.c index 4f7a6f34..a6f07cf9 100644 --- a/options-table.c +++ b/options-table.c @@ -71,6 +71,9 @@ static const char *options_table_window_size_list[] = { static const char *options_table_remain_on_exit_list[] = { "off", "on", "failed", NULL }; +static const char *options_table_detach_on_destroy_list[] = { + "off", "on", "no-detached", NULL +}; /* Status line format. */ #define OPTIONS_TABLE_STATUS_FORMAT1 \ @@ -404,8 +407,9 @@ const struct options_table_entry options_table[] = { }, { .name = "detach-on-destroy", - .type = OPTIONS_TABLE_FLAG, + .type = OPTIONS_TABLE_CHOICE, .scope = OPTIONS_TABLE_SESSION, + .choices = options_table_detach_on_destroy_list, .default_num = 1, .text = "Whether to detach when a session is destroyed, or switch " "the client to another session if any exist." |