From 0feae4d8ae4190b89f486fddab10a691cc7a8fd3 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 10 Sep 2019 19:35:34 +0000 Subject: [PATCH] Make client exit if pane where input is going is closed. --- window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/window.c b/window.c index 0b691197..e3b20a3e 100644 --- a/window.c +++ b/window.c @@ -1572,6 +1572,10 @@ window_pane_input_callback(struct client *c, int closed, void *data) wp = window_pane_find_by_id(cdata->wp); if (wp == NULL || closed || c->flags & CLIENT_DEAD) { + if (wp == NULL) + c->flags |= CLIENT_EXIT; + evbuffer_drain(evb, len); + c->stdin_callback = NULL; server_client_unref(c);