From 57ca3c7800d9fe24ab706512598715fb11cf9b9b Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 6 Jan 2015 09:12:53 +0000 Subject: [PATCH] Unzoom before kill, from Thomas Adam. --- usr.bin/tmux/server-fn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c index e9d0012f47a..48b01e70df0 100644 --- a/usr.bin/tmux/server-fn.c +++ b/usr.bin/tmux/server-fn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.77 2014/10/20 23:27:14 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.78 2015/01/06 09:12:53 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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); -- 2.20.1