Use COLOUR_DEFAULT not hardcoded 8.

pull/2824/head
nicm 2021-08-12 20:09:34 +00:00
parent 9b00472820
commit 6feb8f6505
1 changed files with 2 additions and 2 deletions

View File

@ -390,10 +390,10 @@ status_redraw(struct client *c)
/* Set up default colour. */
style_apply(&gc, s->options, "status-style", ft);
fg = options_get_number(s->options, "status-fg");
if (fg != 8)
if (!COLOUR_DEFAULT(fg))
gc.fg = fg;
bg = options_get_number(s->options, "status-bg");
if (bg != 8)
if (!COLOUR_DEFAULT(bg))
gc.bg = bg;
if (!grid_cells_equal(&gc, &sl->style)) {
force = 1;