From ef18792ae89dd5792fa038d6c92d0b27ddf8e903 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 16 Dec 2015 21:50:39 +0000 Subject: Add infrastructure to work out the best target given a pane or window alone and use it to add pane_died and pane_exited hooks. --- usr.bin/tmux/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tmux/window.c') diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 41dc1bd070b..eb2c090392b 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.152 2015/12/15 00:00:01 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.153 2015/12/16 21:50:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -974,7 +974,7 @@ window_pane_error_callback(__unused struct bufferevent *bufev, { struct window_pane *wp = data; - server_destroy_pane(wp); + server_destroy_pane(wp, 1); } void -- cgit v1.2.3