mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Track the last session for a client and add a flag to switch-client and
a key binding (L) to move a client back to its last session.
This commit is contained in:
@ -399,6 +399,7 @@ server_destroy_session(struct session *s)
|
||||
c->session = NULL;
|
||||
c->flags |= CLIENT_EXIT;
|
||||
} else {
|
||||
c->last_session = UINT_MAX;
|
||||
c->session = s_new;
|
||||
server_redraw_client(c);
|
||||
}
|
||||
|
Reference in New Issue
Block a user