diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-18 12:13:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-18 12:13:21 +0000 |
commit | efb62d423b13b46b6d87fea40926e9ca42a10fd7 (patch) | |
tree | 1087e9eed44b14aee4079c9ec045f0250dea6a1f /cmd-choose-session.c | |
parent | 8ea49712fd4c9f158128832e6c93308afeb1bd4d (diff) | |
download | rtmux-efb62d423b13b46b6d87fea40926e9ca42a10fd7.tar.gz rtmux-efb62d423b13b46b6d87fea40926e9ca42a10fd7.tar.bz2 rtmux-efb62d423b13b46b6d87fea40926e9ca42a10fd7.zip |
Show (attached) for attached sessions.
Diffstat (limited to 'cmd-choose-session.c')
-rw-r--r-- | cmd-choose-session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-choose-session.c b/cmd-choose-session.c index 08057d88..14745c16 100644 --- a/cmd-choose-session.c +++ b/cmd-choose-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-choose-session.c,v 1.2 2009-01-17 18:47:36 nicm Exp $ */ +/* $Id: cmd-choose-session.c,v 1.3 2009-01-18 12:13:21 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -73,8 +73,9 @@ cmd_choose_session_exec(struct cmd *self, struct cmd_ctx *ctx) idx++; window_choose_add(wl->window->active, i, - "%s: %u windows [%ux%u]", s->name, - winlink_count(&s->windows), s->sx, s->sy); + "%s: %u windows [%ux%u]%s", s->name, + winlink_count(&s->windows), s->sx, s->sy, + s->flags & SESSION_UNATTACHED ? "" : " (attached)"); } cdata = xmalloc(sizeof *cdata); |