=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/options-table.c,v retrieving revision 1.168 retrieving revision 1.169 diff -c -r1.168 -r1.169 *** src/usr.bin/tmux/options-table.c 2023/09/01 13:48:54 1.168 --- src/usr.bin/tmux/options-table.c 2024/02/13 08:10:23 1.169 *************** *** 1,4 **** ! /* $OpenBSD: options-table.c,v 1.168 2023/09/01 13:48:54 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: options-table.c,v 1.169 2024/02/13 08:10:23 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott *************** *** 85,90 **** --- 85,93 ---- 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 }; *************** *** 484,494 **** }, { .name = "destroy-unattached", ! .type = OPTIONS_TABLE_FLAG, .scope = OPTIONS_TABLE_SESSION, .default_num = 0, .text = "Whether to destroy sessions when they have no attached " ! "clients." }, { .name = "detach-on-destroy", --- 487,498 ---- }, { .name = "destroy-unattached", ! .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, or keep the last session whether in the group." }, { .name = "detach-on-destroy",