mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use the right client for if -b.
This commit is contained in:
		@@ -121,7 +121,10 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
		cdata->cmd_else = NULL;
 | 
			
		||||
	memcpy(&cdata->mouse, m, sizeof cdata->mouse);
 | 
			
		||||
 | 
			
		||||
	if (!args_has(args, 'b'))
 | 
			
		||||
		cdata->client = item->client;
 | 
			
		||||
	else
 | 
			
		||||
		cdata->client = c;
 | 
			
		||||
	if (cdata->client != NULL)
 | 
			
		||||
		cdata->client->references++;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user