mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:07:38 +00:00 
			
		
		
		
	Hide struct args behind a couple of accessor functions.
This commit is contained in:
		@@ -86,7 +86,7 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
 | 
			
		||||
	window = (cmd_get_entry(self) == &cmd_show_window_options_entry);
 | 
			
		||||
 | 
			
		||||
	if (args->argc == 0) {
 | 
			
		||||
	if (args_count(args) == 0) {
 | 
			
		||||
		scope = options_scope_from_flags(args, window, target, &oo,
 | 
			
		||||
		    &cause);
 | 
			
		||||
		if (scope == OPTIONS_TABLE_NONE) {
 | 
			
		||||
@@ -98,7 +98,7 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
		}
 | 
			
		||||
		return (cmd_show_options_all(self, item, scope, oo));
 | 
			
		||||
	}
 | 
			
		||||
	argument = format_single_from_target(item, args->argv[0]);
 | 
			
		||||
	argument = format_single_from_target(item, args_string(args, 0));
 | 
			
		||||
 | 
			
		||||
	name = options_match(argument, &idx, &ambiguous);
 | 
			
		||||
	if (name == NULL) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user