summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-05-15 14:58:10 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-05-15 14:58:10 +0000
commit8f02545f00316c2885a072c71f8ebeefacd63dc7 (patch)
treeb4ffef682ee40818e03a9dae858ffed379e61a04 /usr.bin
parent5fc491d3341b57b9bcc2af0952892faec8895acd (diff)
Fix switch-client -l, from Jean-Marc Eurin in GitHub issue 1343.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-attach-session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-attach-session.c b/usr.bin/tmux/cmd-attach-session.c
index c911205148f..095ad0f0e6e 100644
--- a/usr.bin/tmux/cmd-attach-session.c
+++ b/usr.bin/tmux/cmd-attach-session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-attach-session.c,v 1.74 2017/08/30 10:33:57 nicm Exp $ */
+/* $OpenBSD: cmd-attach-session.c,v 1.75 2018/05/15 14:58:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -100,6 +100,7 @@ cmd_attach_session(struct cmdq_item *item, const char *tflag, int dflag,
s->cwd = format_single(item, cflag, c, s, wl, wp);
}
+ c->last_session = c->session;
if (c->session != NULL) {
if (dflag) {
TAILQ_FOREACH(c_loop, &clients, entry) {