Make client exit if pane where input is going is closed.

This commit is contained in:
nicm 2019-09-10 19:35:34 +00:00 committed by Nicholas Marriott
parent 54670d898f
commit 846d57e1b8

View File

@ -1551,6 +1551,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);