mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 02:48:47 +00:00
Don't update last session when the session is unchanged, from Sina Siadat.
This commit is contained in:
parent
d5f223a3fe
commit
dc66795e35
@ -124,7 +124,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
|
|||||||
environ_update(update, &c->environ, &s->environ);
|
environ_update(update, &c->environ, &s->environ);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->session != NULL)
|
if (c->session != NULL && c->session != s)
|
||||||
c->last_session = c->session;
|
c->last_session = c->session;
|
||||||
c->session = s;
|
c->session = s;
|
||||||
status_timer_start(c);
|
status_timer_start(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user