mirror of https://github.com/tmux/tmux.git
Merge branch 'obsd-master' into master
commit
25df71b90d
|
@ -203,6 +203,9 @@ session_destroy(struct session *s, int notify, const char *from)
|
||||||
struct winlink *wl;
|
struct winlink *wl;
|
||||||
|
|
||||||
log_debug("session %s destroyed (%s)", s->name, from);
|
log_debug("session %s destroyed (%s)", s->name, from);
|
||||||
|
|
||||||
|
if (s->curw == NULL)
|
||||||
|
return;
|
||||||
s->curw = NULL;
|
s->curw = NULL;
|
||||||
|
|
||||||
RB_REMOVE(sessions, &sessions, s);
|
RB_REMOVE(sessions, &sessions, s);
|
||||||
|
|
Loading…
Reference in New Issue