diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-09-22 21:56:17 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-09-22 21:56:17 +0000 |
commit | 950e3997d02e9b04d1f65bea5d91165e1d78eb48 (patch) | |
tree | a9885448796199665132b0e789082ddab0383994 | |
parent | 6e60e48fdd8022a4da2ecad0a4ec8d65e4110a78 (diff) |
Don't update last session when the session is unchanged, from Sina Siadat.
-rw-r--r-- | usr.bin/tmux/cmd-switch-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c index 6a6c15eaa7d..53581eecd5e 100644 --- a/usr.bin/tmux/cmd-switch-client.c +++ b/usr.bin/tmux/cmd-switch-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-switch-client.c,v 1.30 2015/09/10 08:58:14 nicm Exp $ */ +/* $OpenBSD: cmd-switch-client.c,v 1.31 2015/09/22 21:56:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -124,7 +124,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq) environ_update(update, &c->environ, &s->environ); } - if (c->session != NULL) + if (c->session != NULL && c->session != s) c->last_session = c->session; c->session = s; status_timer_start(c); |