mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Do not try to set default value on user options (they don't have one),
from Charles Howard in GitHub issue 1161.
This commit is contained in:
		@@ -192,7 +192,9 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
		if (o == NULL)
 | 
							if (o == NULL)
 | 
				
			||||||
			goto out;
 | 
								goto out;
 | 
				
			||||||
		if (idx == -1) {
 | 
							if (idx == -1) {
 | 
				
			||||||
			if (oo == global_options ||
 | 
								if (*name == '@')
 | 
				
			||||||
 | 
									options_remove(o);
 | 
				
			||||||
 | 
								else if (oo == global_options ||
 | 
				
			||||||
			    oo == global_s_options ||
 | 
								    oo == global_s_options ||
 | 
				
			||||||
			    oo == global_w_options)
 | 
								    oo == global_w_options)
 | 
				
			||||||
				options_default(oo, options_table_entry(o));
 | 
									options_default(oo, options_table_entry(o));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user