mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Show error if user option doesn't exist, GitHub issue 2938.
This commit is contained in:
		@@ -127,6 +127,12 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
		parent = 0;
 | 
							parent = 0;
 | 
				
			||||||
	if (o != NULL)
 | 
						if (o != NULL)
 | 
				
			||||||
		cmd_show_options_print(self, item, o, idx, parent);
 | 
							cmd_show_options_print(self, item, o, idx, parent);
 | 
				
			||||||
 | 
						else if (*name == '@') {
 | 
				
			||||||
 | 
							if (args_has(args, 'q'))
 | 
				
			||||||
 | 
								goto fail;
 | 
				
			||||||
 | 
							cmdq_error(item, "invalid option: %s", argument);
 | 
				
			||||||
 | 
							goto fail;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	free(name);
 | 
						free(name);
 | 
				
			||||||
	free(argument);
 | 
						free(argument);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user