summaryrefslogtreecommitdiffstats
path: root/cmd-choose-window.c
authortcunha <tcunha>2009-10-11 23:38:16 (GMT)
committer tcunha <tcunha>2009-10-11 23:38:16 (GMT)
commitc28058cdf530d7ec3608b192df972251563db5af (patch) (side-by-side diff)
treebef2144f45208c6124f37a7ccd02db8d25ca41d0 /cmd-choose-window.c
parent1ccae0182130d8ee059ec79891bf48b53abb67bd (diff)
downloadtmux-old-c28058cdf530d7ec3608b192df972251563db5af.zip
tmux-old-c28058cdf530d7ec3608b192df972251563db5af.tar.gz
tmux-old-c28058cdf530d7ec3608b192df972251563db5af.tar.bz2
Sync OpenBSD patchset 371:
Add "grouped sessions" which have independent name, options, current window and so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session. Had this around for a while, tested by a couple of people.
Diffstat (limited to 'cmd-choose-window.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-choose-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-choose-window.c b/cmd-choose-window.c
index accdcd2..0d05e5a 100644
--- a/cmd-choose-window.c
+++ b/cmd-choose-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-choose-window.c,v 1.17 2009/09/07 23:59:19 tcunha Exp $ */
+/* $Id: cmd-choose-window.c,v 1.18 2009/10/11 23:38:16 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <[email protected]>
@@ -89,7 +89,7 @@ cmd_choose_window_exec(struct cmd *self, struct cmd_ctx *ctx)
flag = '+';
else if (wm == s->curw)
flag = '*';
- else if (wm == SLIST_FIRST(&s->lastw))
+ else if (wm == TAILQ_FIRST(&s->lastw))
flag = '-';
title = w->active->screen->title;