mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 01:34:18 +00:00 
			
		
		
		
	Merge branch 'obsd-master' into master
This commit is contained in:
		@@ -102,7 +102,7 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
	name = options_match(argument, &idx, &ambiguous);
 | 
						name = options_match(argument, &idx, &ambiguous);
 | 
				
			||||||
	if (name == NULL) {
 | 
						if (name == NULL) {
 | 
				
			||||||
		if (args_has(args, 'q'))
 | 
							if (args_has(args, 'q'))
 | 
				
			||||||
			goto fail;
 | 
								goto out;
 | 
				
			||||||
		if (ambiguous)
 | 
							if (ambiguous)
 | 
				
			||||||
			cmdq_error(item, "ambiguous option: %s", argument);
 | 
								cmdq_error(item, "ambiguous option: %s", argument);
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
@@ -113,7 +113,7 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
	    &cause);
 | 
						    &cause);
 | 
				
			||||||
	if (scope == OPTIONS_TABLE_NONE) {
 | 
						if (scope == OPTIONS_TABLE_NONE) {
 | 
				
			||||||
		if (args_has(args, 'q'))
 | 
							if (args_has(args, 'q'))
 | 
				
			||||||
			goto fail;
 | 
								goto out;
 | 
				
			||||||
		cmdq_error(item, "%s", cause);
 | 
							cmdq_error(item, "%s", cause);
 | 
				
			||||||
		free(cause);
 | 
							free(cause);
 | 
				
			||||||
		goto fail;
 | 
							goto fail;
 | 
				
			||||||
@@ -128,11 +128,12 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
		cmd_show_options_print(self, item, o, idx, parent);
 | 
							cmd_show_options_print(self, item, o, idx, parent);
 | 
				
			||||||
	else if (*name == '@') {
 | 
						else if (*name == '@') {
 | 
				
			||||||
		if (args_has(args, 'q'))
 | 
							if (args_has(args, 'q'))
 | 
				
			||||||
			goto fail;
 | 
								goto out;
 | 
				
			||||||
		cmdq_error(item, "invalid option: %s", argument);
 | 
							cmdq_error(item, "invalid option: %s", argument);
 | 
				
			||||||
		goto fail;
 | 
							goto fail;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					out:
 | 
				
			||||||
	free(name);
 | 
						free(name);
 | 
				
			||||||
	free(argument);
 | 
						free(argument);
 | 
				
			||||||
	return (CMD_RETURN_NORMAL);
 | 
						return (CMD_RETURN_NORMAL);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user