mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Use COLOUR_DEFAULT not hardcoded 8.
This commit is contained in:
		
							
								
								
									
										4
									
								
								status.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								status.c
									
									
									
									
									
								
							@@ -390,10 +390,10 @@ status_redraw(struct client *c)
 | 
				
			|||||||
	/* Set up default colour. */
 | 
						/* Set up default colour. */
 | 
				
			||||||
	style_apply(&gc, s->options, "status-style", ft);
 | 
						style_apply(&gc, s->options, "status-style", ft);
 | 
				
			||||||
	fg = options_get_number(s->options, "status-fg");
 | 
						fg = options_get_number(s->options, "status-fg");
 | 
				
			||||||
	if (fg != 8)
 | 
						if (!COLOUR_DEFAULT(fg))
 | 
				
			||||||
		gc.fg = fg;
 | 
							gc.fg = fg;
 | 
				
			||||||
	bg = options_get_number(s->options, "status-bg");
 | 
						bg = options_get_number(s->options, "status-bg");
 | 
				
			||||||
	if (bg != 8)
 | 
						if (!COLOUR_DEFAULT(bg))
 | 
				
			||||||
		gc.bg = bg;
 | 
							gc.bg = bg;
 | 
				
			||||||
	if (!grid_cells_equal(&gc, &sl->style)) {
 | 
						if (!grid_cells_equal(&gc, &sl->style)) {
 | 
				
			||||||
		force = 1;
 | 
							force = 1;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user