aboutsummaryrefslogtreecommitdiff
path: root/options-table.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-01-04 10:01:20 +0000
committerThomas Adam <thomas@xteddy.org>2021-01-04 10:01:20 +0000
commit5a2db4c7e8ba94fadb31075e6813cf53b87b5366 (patch)
tree7cbd0a3f9fcf8d0faba5aef225c7740b0c2818e2 /options-table.c
parentf04cc3997629823f0e304d4e4184e2ec93c703f0 (diff)
parentbd0fb22f0a206a73ec3f41322571d56d9d7d7c5d (diff)
downloadrtmux-5a2db4c7e8ba94fadb31075e6813cf53b87b5366.tar.gz
rtmux-5a2db4c7e8ba94fadb31075e6813cf53b87b5366.tar.bz2
rtmux-5a2db4c7e8ba94fadb31075e6813cf53b87b5366.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'options-table.c')
-rw-r--r--options-table.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/options-table.c b/options-table.c
index cf0d8c5e..3fd3fe4a 100644
--- a/options-table.c
+++ b/options-table.c
@@ -68,6 +68,9 @@ static const char *options_table_set_clipboard_list[] = {
static const char *options_table_window_size_list[] = {
"largest", "smallest", "manual", "latest", NULL
};
+static const char *options_table_remain_on_exit_list[] = {
+ "off", "on", "failed", NULL
+};
/* Status line format. */
#define OPTIONS_TABLE_STATUS_FORMAT1 \
@@ -948,11 +951,12 @@ const struct options_table_entry options_table[] = {
},
{ .name = "remain-on-exit",
- .type = OPTIONS_TABLE_FLAG,
+ .type = OPTIONS_TABLE_CHOICE,
.scope = OPTIONS_TABLE_WINDOW|OPTIONS_TABLE_PANE,
+ .choices = options_table_remain_on_exit_list,
.default_num = 0,
.text = "Whether panes should remain ('on') or be automatically "
- "killed ('off') when the program inside exits."
+ "killed ('off' or 'failed') when the program inside exits."
},
{ .name = "synchronize-panes",