diff options
author | Thomas Adam <thomas@xteddy.org> | 2024-02-13 10:01:10 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2024-02-13 10:01:10 +0000 |
commit | 0960862950476a5a519905487d731a8b843d07c2 (patch) | |
tree | 72b24ad259c3e0c78f1cf166b35b60e718240eab /options-table.c | |
parent | 44ad25b3673cf9fddc92ed122e51cd9beb50d4f7 (diff) | |
parent | 40b97b1715182b0ab0274b0c402b34e2cba98f04 (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'options-table.c')
-rw-r--r-- | options-table.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/options-table.c b/options-table.c index 89200b95..f030f2db 100644 --- a/options-table.c +++ b/options-table.c @@ -84,6 +84,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_destroy_unattached_list[] = { + "off", "on", "keep-last", "keep-group", NULL +}; static const char *options_table_detach_on_destroy_list[] = { "off", "on", "no-detached", "previous", "next", NULL }; @@ -483,11 +486,12 @@ const struct options_table_entry options_table[] = { }, { .name = "destroy-unattached", - .type = OPTIONS_TABLE_FLAG, + .type = OPTIONS_TABLE_CHOICE, .scope = OPTIONS_TABLE_SESSION, + .choices = options_table_destroy_unattached_list, .default_num = 0, .text = "Whether to destroy sessions when they have no attached " - "clients." + "clients, or keep the last session whether in the group." }, { .name = "detach-on-destroy", |