summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-04-05 19:37:01 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-04-05 19:37:01 +0000
commit5d519ba526feffb08003e2c11c7230a6f2cc1d9e (patch)
tree446bc8a565b04861e848231e7d25dd49b1c96d8f /cmd-new-session.c
parentf16ea60cc0eceeb1e0bd580129d99aff4423ec19 (diff)
Add a flag to cmd_find_session so that attach-session can prefer
unattached sessions when choosing the most recently used (if -t is not given). Suggested by claudio@.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index f5e1316f..fc847bd2 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -75,7 +75,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
target = args_get(args, 't');
if (target != NULL) {
- groupwith = cmd_find_session(ctx, target);
+ groupwith = cmd_find_session(ctx, target, 0);
if (groupwith == NULL)
return (-1);
} else