diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-12-11 18:39:25 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-12-11 18:39:25 +0000 |
commit | 51487ed22f0acf199f64728f3efc15a3c9ad615f (patch) | |
tree | d7702647b5c8d0337b0f5708118359ebd78e95d6 /server-fn.c | |
parent | 20ed20ea1eb996cbfc530688dac7646f58a43fe6 (diff) |
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.
Diffstat (limited to 'server-fn.c')
-rw-r--r-- | server-fn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server-fn.c b/server-fn.c index 59f61373..20a245e0 100644 --- a/server-fn.c +++ b/server-fn.c @@ -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); } |