mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Have client return 1 if process is interrupted to an input pane.
This commit is contained in:
		
							
								
								
									
										4
									
								
								window.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								window.c
									
									
									
									
									
								
							@@ -1535,8 +1535,10 @@ window_pane_input_callback(struct client *c, __unused const char *path,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	wp = window_pane_find_by_id(cdata->wp);
 | 
						wp = window_pane_find_by_id(cdata->wp);
 | 
				
			||||||
	if (cdata->file != NULL && (wp == NULL || c->flags & CLIENT_DEAD)) {
 | 
						if (cdata->file != NULL && (wp == NULL || c->flags & CLIENT_DEAD)) {
 | 
				
			||||||
		if (wp == NULL)
 | 
							if (wp == NULL) {
 | 
				
			||||||
 | 
								c->retval = 1;
 | 
				
			||||||
			c->flags |= CLIENT_EXIT;
 | 
								c->flags |= CLIENT_EXIT;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		file_cancel(cdata->file);
 | 
							file_cancel(cdata->file);
 | 
				
			||||||
	} else if (cdata->file == NULL || closed || error != 0) {
 | 
						} else if (cdata->file == NULL || closed || error != 0) {
 | 
				
			||||||
		cmdq_continue(cdata->item);
 | 
							cmdq_continue(cdata->item);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user