mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
Sync OpenBSD patchset 802:
Use pointer rather than index for the client's last session.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* $Id: server-fn.c,v 1.114 2010-12-11 18:42:20 nicm Exp $ */
|
||||
/* $Id: server-fn.c,v 1.115 2010-12-22 15:31:00 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -399,7 +399,7 @@ server_destroy_session(struct session *s)
|
||||
c->session = NULL;
|
||||
c->flags |= CLIENT_EXIT;
|
||||
} else {
|
||||
c->last_session = UINT_MAX;
|
||||
c->last_session = NULL;
|
||||
c->session = s_new;
|
||||
server_redraw_client(c);
|
||||
}
|
||||
|
Reference in New Issue
Block a user