aboutsummaryrefslogtreecommitdiff
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-07-02 02:45:52 +0000
committerTiago Cunha <tcunha@gmx.com>2010-07-02 02:45:52 +0000
commitfa34c762752559480af4de1cb209bf2562ce23ff (patch)
tree8edc9fc42bfb03c0c9e2d6e2e08b7efb933f215a /cmd-set-option.c
parent985cd3a4ded7ec319a317bc4fbf5b120675feecb (diff)
downloadrtmux-fa34c762752559480af4de1cb209bf2562ce23ff.tar.gz
rtmux-fa34c762752559480af4de1cb209bf2562ce23ff.tar.bz2
rtmux-fa34c762752559480af4de1cb209bf2562ce23ff.zip
Sync OpenBSD patchset 729:
New option, detach-on-destroy, to set what happens to a client when the session it is attached to is destroyed. If on (the default), it is detached; if off, it is switched to the most recently active session.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 577af73e..c86f04c2 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-set-option.c,v 1.97 2010-06-05 23:56:29 tcunha Exp $ */
+/* $Id: cmd-set-option.c,v 1.98 2010-07-02 02:45:52 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -87,6 +87,7 @@ const struct set_option_entry set_session_option_table[] = {
{ "default-path", SET_OPTION_STRING, 0, 0, NULL },
{ "default-shell", SET_OPTION_STRING, 0, 0, NULL },
{ "default-terminal", SET_OPTION_STRING, 0, 0, NULL },
+ { "detach-on-destroy", SET_OPTION_FLAG, 0, 0, NULL },
{ "display-panes-colour", SET_OPTION_COLOUR, 0, 0, NULL },
{ "display-panes-active-colour", SET_OPTION_COLOUR, 0, 0, NULL },
{ "display-panes-time", SET_OPTION_NUMBER, 1, INT_MAX, NULL },