From 5d519ba526feffb08003e2c11c7230a6f2cc1d9e Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 5 Apr 2011 19:37:01 +0000 Subject: 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@. --- cmd-show-environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-show-environment.c') diff --git a/cmd-show-environment.c b/cmd-show-environment.c index f52efbca..e84ff685 100644 --- a/cmd-show-environment.c +++ b/cmd-show-environment.c @@ -50,7 +50,7 @@ cmd_show_environment_exec(struct cmd *self, struct cmd_ctx *ctx) if (args_has(self->args, 'g')) env = &global_environ; else { - if ((s = cmd_find_session(ctx, args_get(args, 't'))) == NULL) + if ((s = cmd_find_session(ctx, args_get(args, 't'), 0)) == NULL) return (-1); env = &s->environ; } -- cgit v1.2.3