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
parent 4b7e97ba53
commit 0feae4d8ae

View File

@ -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);