mirror of
https://github.com/tmux/tmux.git
synced 2024-11-18 10:28:54 +00:00
Make client exit if pane where input is going is closed.
This commit is contained in:
parent
4b7e97ba53
commit
0feae4d8ae
4
window.c
4
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user