mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Cache the window styles and do not look up the window-style options
unless they have changed.
This commit is contained in:
		@@ -200,6 +200,11 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq)
 | 
			
		||||
		status_timer_start_all();
 | 
			
		||||
	if (strcmp(oe->name, "monitor-silence") == 0)
 | 
			
		||||
		alerts_reset_all();
 | 
			
		||||
	if (strcmp(oe->name, "window-style") == 0 ||
 | 
			
		||||
	    strcmp(oe->name, "window-active-style") == 0) {
 | 
			
		||||
		RB_FOREACH(w, windows, &windows)
 | 
			
		||||
			w->flags |= WINDOW_STYLECHANGED;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* When the pane-border-status option has been changed, resize panes. */
 | 
			
		||||
	if (strcmp(oe->name, "pane-border-status") == 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user