mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Change so that an empty session name always means the current sessions
even if given with, for example, -t '', and explicitly forbid empty session names and those containing a : when they are created.
This commit is contained in:
		@@ -164,6 +164,13 @@ session_destroy(struct session *s)
 | 
			
		||||
	RB_INSERT(sessions, &dead_sessions, s);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Check a session name is valid: not empty and no colons. */
 | 
			
		||||
int
 | 
			
		||||
session_check_name(const char *name)
 | 
			
		||||
{
 | 
			
		||||
	return (*name != '\0' && strchr(name, ':') == NULL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Update session active time. */
 | 
			
		||||
void
 | 
			
		||||
session_update_activity(struct session *s)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user