mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Use RB_MIN to get the lowest index for the current window when creating
grouped sessions, rather than using RB_ROOT.
This commit is contained in:
		@@ -254,7 +254,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_q *cmdq)
 | 
			
		||||
	if (groupwith != NULL) {
 | 
			
		||||
		session_group_add(groupwith, s);
 | 
			
		||||
		session_group_synchronize_to(s);
 | 
			
		||||
		session_select(s, RB_ROOT(&s->windows)->idx);
 | 
			
		||||
		session_select(s, RB_MIN(winlinks, &s->windows)->idx);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user