mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Make client exit if pane where input is going is closed.
This commit is contained in:
		
							
								
								
									
										4
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								window.c
									
									
									
									
									
								
							@@ -1551,6 +1551,10 @@ window_pane_input_callback(struct client *c, int closed, void *data)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	wp = window_pane_find_by_id(cdata->wp);
 | 
						wp = window_pane_find_by_id(cdata->wp);
 | 
				
			||||||
	if (wp == NULL || closed || c->flags & CLIENT_DEAD) {
 | 
						if (wp == NULL || closed || c->flags & CLIENT_DEAD) {
 | 
				
			||||||
 | 
							if (wp == NULL)
 | 
				
			||||||
 | 
								c->flags |= CLIENT_EXIT;
 | 
				
			||||||
 | 
							evbuffer_drain(evb, len);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		c->stdin_callback = NULL;
 | 
							c->stdin_callback = NULL;
 | 
				
			||||||
		server_client_unref(c);
 | 
							server_client_unref(c);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user