mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Hide struct args behind a couple of accessor functions.
This commit is contained in:
		@@ -51,7 +51,7 @@ cmd_rename_session_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	struct session		*s = target->s;
 | 
			
		||||
	char			*newname, *tmp;
 | 
			
		||||
 | 
			
		||||
	tmp = format_single_from_target(item, args->argv[0]);
 | 
			
		||||
	tmp = format_single_from_target(item, args_string(args, 0));
 | 
			
		||||
	newname = session_check_name(tmp);
 | 
			
		||||
	if (newname == NULL) {
 | 
			
		||||
		cmdq_error(item, "invalid session: %s", tmp);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user