summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-12-16 21:50:39 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-12-16 21:50:39 +0000
commitef18792ae89dd5792fa038d6c92d0b27ddf8e903 (patch)
tree302a1b613c48831ce9a7f70c0ff9a46663ef0bb2 /usr.bin/tmux/window.c
parentbf3319dd4e4b364a7924e99c72e83dbdb76df2db (diff)
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.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 2 insertions, 2 deletions
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 <nicm@users.sourceforge.net>
@@ -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