summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-16 21:50:37 +0000
committernicm <nicm>2015-12-16 21:50:37 +0000
commit021c64310daa4ae4c4e8af08f17c994f21237758 (patch)
tree7f0556b343bba058dec19c87c8f52f215cdbd2eb /server.c
parent8eb1a7d5dc8d66ca7d17c72e4d8d0e58d6fd2824 (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 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 0a1146f3..170244c7 100644
--- a/server.c
+++ b/server.c
@@ -387,7 +387,7 @@ server_child_exited(pid_t pid, int status)
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->pid == pid) {
wp->status = status;
- server_destroy_pane(wp);
+ server_destroy_pane(wp, 1);
break;
}
}