mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Hide struct args behind a couple of accessor functions.
This commit is contained in:
		@@ -82,7 +82,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* If no pipe command, that is enough. */
 | 
			
		||||
	if (args->argc == 0 || *args->argv[0] == '\0')
 | 
			
		||||
	if (args_count(args) == 0 || *args_string(args, 0) == '\0')
 | 
			
		||||
		return (CMD_RETURN_NORMAL);
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
@@ -112,7 +112,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	/* Expand the command. */
 | 
			
		||||
	ft = format_create(cmdq_get_client(item), item, FORMAT_NONE, 0);
 | 
			
		||||
	format_defaults(ft, tc, s, wl, wp);
 | 
			
		||||
	cmd = format_expand_time(ft, args->argv[0]);
 | 
			
		||||
	cmd = format_expand_time(ft, args_string(args, 0));
 | 
			
		||||
	format_free(ft);
 | 
			
		||||
 | 
			
		||||
	/* Fork the child. */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user