=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/options-table.c,v retrieving revision 1.138 retrieving revision 1.139 diff -u -r1.138 -r1.139 --- src/usr.bin/tmux/options-table.c 2021/01/20 07:16:54 1.138 +++ src/usr.bin/tmux/options-table.c 2021/02/01 08:01:14 1.139 @@ -1,4 +1,4 @@ -/* $OpenBSD: options-table.c,v 1.138 2021/01/20 07:16:54 nicm Exp $ */ +/* $OpenBSD: options-table.c,v 1.139 2021/02/01 08:01:14 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -72,6 +72,9 @@ 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 \ @@ -405,8 +408,9 @@ }, { .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."