mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Document that switch-client can change all of session,window,pane and check for
% in the target as well as ":.".
This commit is contained in:
		@@ -61,7 +61,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
	if ((c = cmd_find_client(item, args_get(args, 'c'), 0)) == NULL)
 | 
						if ((c = cmd_find_client(item, args_get(args, 'c'), 0)) == NULL)
 | 
				
			||||||
		return (CMD_RETURN_ERROR);
 | 
							return (CMD_RETURN_ERROR);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (tflag != NULL && tflag[strcspn(tflag, ":.")] != '\0') {
 | 
						if (tflag != NULL && tflag[strcspn(tflag, ":.%")] != '\0') {
 | 
				
			||||||
		type = CMD_FIND_PANE;
 | 
							type = CMD_FIND_PANE;
 | 
				
			||||||
		flags = 0;
 | 
							flags = 0;
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										8
									
								
								tmux.1
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								tmux.1
									
									
									
									
									
								
							@@ -1096,6 +1096,14 @@ Switch the current session for client
 | 
				
			|||||||
.Ar target-client
 | 
					.Ar target-client
 | 
				
			||||||
to
 | 
					to
 | 
				
			||||||
.Ar target-session .
 | 
					.Ar target-session .
 | 
				
			||||||
 | 
					As a special case,
 | 
				
			||||||
 | 
					.Fl t
 | 
				
			||||||
 | 
					may refer to a pane (a target that contains
 | 
				
			||||||
 | 
					.Ql : ,
 | 
				
			||||||
 | 
					.Ql .
 | 
				
			||||||
 | 
					or
 | 
				
			||||||
 | 
					.Ql % )
 | 
				
			||||||
 | 
					in which case the session, window and pane are all changed.
 | 
				
			||||||
If
 | 
					If
 | 
				
			||||||
.Fl l ,
 | 
					.Fl l ,
 | 
				
			||||||
.Fl n
 | 
					.Fl n
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user