summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-select-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-04-05 19:37:01 +0000
committernicm <nicm@openbsd.org>2011-04-05 19:37:01 +0000
commit2ff59e8b4382aa1143fe52b69f8e5ae31c08eb4a (patch)
treea3dbcec3c66b9ea5944bf577d917d7a4263147c5 /usr.bin/tmux/cmd-select-window.c
parentregen (diff)
downloadwireguard-openbsd-2ff59e8b4382aa1143fe52b69f8e5ae31c08eb4a.tar.xz
wireguard-openbsd-2ff59e8b4382aa1143fe52b69f8e5ae31c08eb4a.zip
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 'usr.bin/tmux/cmd-select-window.c')
-rw-r--r--usr.bin/tmux/cmd-select-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-select-window.c b/usr.bin/tmux/cmd-select-window.c
index c07b749bd07..f3a29a3c90c 100644
--- a/usr.bin/tmux/cmd-select-window.c
+++ b/usr.bin/tmux/cmd-select-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-window.c,v 1.6 2011/01/04 02:03:41 nicm Exp $ */
+/* $OpenBSD: cmd-select-window.c,v 1.7 2011/04/05 19:37:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -102,7 +102,7 @@ cmd_select_window_exec(struct cmd *self, struct cmd_ctx *ctx)
last = 1;
if (next || previous || last) {
- s = cmd_find_session(ctx, args_get(args, 't'));
+ s = cmd_find_session(ctx, args_get(args, 't'), 0);
if (s == NULL)
return (-1);