1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Unzoom before kill, from Thomas Adam.

This commit is contained in:
nicm 2015-01-06 09:12:53 +00:00
parent be0ad01b7c
commit fee096a406

View File

@ -270,6 +270,7 @@ server_kill_window(struct window *w)
if (session_has(s, w) == NULL)
continue;
server_unzoom_window(w);
while ((wl = winlink_find_by_window(&s->windows, w)) != NULL) {
if (session_detach(s, wl)) {
server_destroy_session_group(s);